[SalesForce] Lightning Community – Landing Page/Home Page

Requirement We have created a Lightning Community with a Lightning Template Napili. However, we would like to setup a landing page once you open up the community. The landing page is different from the Home page as it's a page showing a disclaimer. After which the user can login as a guest or login as a community member. After logging in as guest or logging in as community user, you should be redirected towards the actual community Home Page.

Configuration
Thus looking at the Site from the Lightning Community, you can setup an 'Active Site Home Page'. For which we have created a custom page which basically should redirect you towards the VF containing the disclaimer.

Issue
However, this is not working. When entering the URL of community, you are always redirected towards the Lightning Home Page. It seems like the site option 'Active Site Home Page' is being skipped. Is that true? Is there any other way to achieve the above?

Best Answer

Here is what I did in my developer edition sandbox based on what you provided in the comments and question:

  1. Created a community and selected template as Napili.
  2. When you create community, It creates a site also go to site(Settings->Develop->Sites)
  3. Here add the custom VF page you built(Site Visualforce Pages section).
  4. Active Site Homepage should be "CommunitiesLanding"
  5. Add a URL redirect for the site as something like below(replace 'SimplePage' with your Disclaimer page):

    enter image description here

  6. On your disclaimer page, wherever you want to display community login url, use something like this:

    <apex:outputLink value="/CommunitiesLogin"> Community Login</apex:outputLink>
    

so with all this what will happen is :

  1. User enters url for the site in the browser.
  2. User is shown the SimplePage because we set the URL redirect for the site to this page in the above screenshot.
  3. This page shows a hyperlink and clicking on it will take user to community login page.
  4. Entering credentials will take user to Community home page(Because Active Site Home page is set to "CommunitiesLanding").

Here on step 2, looks like you want to show disclaimer info and other stuff.

Related Topic