Does the Force.com Site URL redirect only work with the actual Force.com Site and not the /s Lightning Community?

enter image description here

enter image description here

For example, if I create a redirect from /s/foo to https://www.google.com and navigate to https://{myCommunityDomain}/s/foo, nothing happens. However, if I remove the /s and navigate to https://{myCommunityDomain}/foo I am redirected to Google.

Is this expected behavior? If so, is the only way to redirect in a lightning community is to create a custom component like this

<aura:component implements="forceCommunity:availableForAllPageTypes,force:appHostable" access="global">
<lightning:navigation aura:id="navigationService" />

    type: "standard__webPage", 
    attributes: { 
        url: 'https://www.google.com' 
  • How are you creating a redirect? – identigral Oct 1 '20 at 22:55
  • Updated question with images – Bryan Anderson Oct 1 '20 at 23:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.