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
pinoytechiepinoytechie 

Salesforce Community issue when template is switched to VF + Tab (that /s)

So we have this community setup that was previously using Napili template. We switched template to VF + Tab, but the /s (i.e. /mycommunity/s) for lightning is still accessible?

How can I get rid of this /s ?

Thanks!
Dev BoorlaDev Boorla

Hi,
Can you elaborate on where you want to get rid of?  Are you not using relative path?

Best,

Dev

pinoytechiepinoytechie
Thanks for the answer.

Simply, I do not want the old lightning site to be served when users try to access the /s part.
pinoytechiepinoytechie
Here are the sample to illustrate this situation:
You see, when you access site1 with /s (https://secret-one-developer-edition.ap5.force.com/site1/s), it returns with expected result.

But when you access site2 with /s (https://secret-one-developer-edition.ap5.force.com/site2/s), the old lightning site which I intend to replace with VF+Tab is being still presented/served, which could create confusion to my users.
NagendraNagendra (Salesforce Developers) 
Hi Pinoytechie,

By default, Salesforce is going to reserve both the /my community and /my community/s URLs. This is also visible by going to Setup --> Custom URLs. Here you can see that the /my community has a site type of Force.com while the /my community/s has a site type of Site.com.

Both are reserved because you might want to switch between the two different site types but still keep the underlying "my community" name. If you're still utilizing the VF + Tabs in the site builder then I believe this will still utilize the /s. If you go with only VF pages and don't utilize the Site Builder Studio then you can utilize just the /my community URL.

Thanks,
Nagendra.