function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Will Johnston 34Will Johnston 34 

Get prefix that includes "/s" for community urls?

We would like to move Visualforce pages into a Lightning community. But it looks like we need to rework links to target urls in this format {!$Site.Prefix}/s/communitypagename. Is there another option similar to Site.Prefix that includes the '/s' which appears to be added to the end of community urls?

For context, we are converting a Visualforce community to a Lightning community. The first step we are considering is to move our existing Visualforce pages. Later we plan on iteratively rebuilding the Visualforce pages with Lightning Web Components.