Loading
Experience Cloud
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Configure the Default Login Page to Use a Custom Home Page

          Configure the Default Login Page to Use a Custom Home Page

          If you're using external authentication providers and a custom home page, ensure that users are accessing the correct home page.

          Required Editions

          Available in: both Salesforce Classic and Lightning Experience
          Available in: Enterprise, Performance, Unlimited, and Developer Editions
          User Permissions Needed
          To access Experience Workspaces:
          • Manage Experiences OR Create and Set Up Experiences
          • AND is a member of the site
          To customize administration settings:
          • Create and Set Up Experiences
          • AND is a member of the site
          To edit Apex classes: Author Apex

          Edit the CommunitiesLandingController so that it has the correct startURL for your Salesforce Tabs + Visualforce site. The CommunitiesLandingPage is the Active Site Home Page for your site, meaning that it is shown when someone enters a direct URL to your site. For instance, if your domain is universaltelco.my.site.com and your site URL is customers, the CommunitiesLandingPage is shown when someone enters https://universaltelco.my.site.com/customers.

          There are two methods for using a custom home page.

          • Update the CommunitiesLandingController code to redirect to the new page:
            1. From Setup, enter Apex Classes in the Quick Find box, then select Apex Classes.
            2. Click Edit next to CommunitiesLandingController.
            3. Replace the code so that it reads:
              public with sharing class CommunitiesLandingController {
              public PageReference forwardToStartPage() {
              }
              }
            4. Replace https://universaltelcom.my.site.com with the URL for your site.
            5. Click Save.
          • Alternatively, you can replace the Active Site Home Page with a custom Visualforce page.
            1. From Setup, enter Digital Experiences in the Quick Find box, then select All Sites.
            2. Click Workspaces next to the site name.
            3. Click Administration | Pages | Go to Force.com.
            4. In the Site Detail section, click Edit.
            5. In the Active Site Home Page field, select your custom Visualforce page.
            6. Click Save.

          When a user enters the URL, they see the new Active Site Home Page.

           
          Loading
          Salesforce Help | Article