You are here:
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: |
|
| To customize administration settings: |
|
| 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
CommunitiesLandingControllercode to redirect to the new page:- From Setup, enter Apex Classes in the Quick Find box, then select Apex Classes.
-
Click Edit next to
CommunitiesLandingController. -
Replace the code so that it reads:
public with sharing class CommunitiesLandingController { public PageReference forwardToStartPage() { } } - Replace https://universaltelcom.my.site.com with the URL for your site.
- Click Save.
-
Alternatively, you can replace the Active Site Home Page with a custom Visualforce
page.
- From Setup, enter Digital Experiences in the Quick Find box, then select All Sites.
- Click Workspaces next to the site name.
- Click Administration | Pages | Go to Force.com.
- In the Site Detail section, click Edit.
- In the Active Site Home Page field, select your custom Visualforce page.
- Click Save.
When a user enters the URL, they see the new Active Site Home Page.

