[SalesForce] Set Community Redirect Page after Reset Password

I have set up a Customer Community with Self-Registration. I am having users register without setting a password. They receive the "Welcome Email" after self-registration.

The email has a link for the user to set their password.

After they set their password, the user is redirected to a Visualforce Page- how do I set this to an Experience Builder Page? I am not using Visualforce pages for my community.

The page that is being displayed is set in Administration -> Sites & Domains -> Custom URLs, then click the field under "Site Label" with Site Type = "Community" (Note clicking this when Type = Site.com Community returns a bad URL…

Now "Active Site Homepage" is a Visualforce Page, and that is all that's selectable (Not sure how this influences Experience Builder Page, however, removing access to certain Visualforce Pages under the related list: Site Visualforce Pages removes access to Experience Builder Pages for no documented reason?

For reference:

enter image description here
enter image description here
enter image description here
enter image description here

Best Answer

Hack'ish fix:

There is an undocumented relationship between Site, Communities, Experience Builder & Visualforce Page & Site.com Studio.

The page that {!Community_Url} redirects to in email merge templates following password resets is set by Administration->Site->Active Site Home Page (prefixed with your Community Domain Url):

/apex/CommunityHomepage (this is a required field).

Modify this Visualforce Page like so:

<apex:page showHeader="false" 
sidebar="false" 
action="{!redirect}" 
controller="CommunityHomepageController">

</apex:page>
public Pagereference redirect(){
  Network myNetwork = [SELECT Id FROM Network WHERE Name ='Community Name' ];
  ConnectApi.Community  myCommunity = ConnectApi.Communities.getCommunity(myNetwork.id);
  Pagereference pr = new Pagereference(myCommunity.siteUrl);
  pr.setRedirect(true);
  return pr;
}
Related Topic