5

I have below default welcome email template which redirects the users to standard login page but it doesn't goes to my new custom community login page.

 Hi {!Receiving_User.FirstName},

Welcome to {!Community_Name}! To get started, go to {!Community_Url}

Thanks,
{!Organization.Name}

How do I update community_url ?

  • When you click "Edit" for your community you will see the URL of the community; when you receive the email the {!Community_Url} field should be that URL plus a "/login" suffix. If it is then the Community_Url is not the problem and you will need to review all parts of your community setup. – Keith C Oct 15 '13 at 22:16
6

Go to Setup > Customize > Communities > Manage Communities and click on Force.com to edit your Communities Sites settings.

When a user arrives your community URL, they are sent to the Active Site Home Page (top right of the page). The recommended best practice here is to set the Active Site Home Page to a routing page of some sort, that holds logic to either send the user to some page that they were originally requesting (usually a startURL querystring parameter) if they have an active session, or the communities home page (some VF page or default home tab, whatever "Home" is for your community) also if they have an active session or a login page if they don't have an active session. Your landing page should just consist of a page action, which calls a method that looks something like this:

// Code we will invoke on page load from any WWW or mobile user.
public PageReference wwwForwardToStartPage() { 
    String startUrl = System.currentPageReference().getParameters().get('startURL');
    if (UserInfo.getUserType()=='Guest') {
        return Page.PUBlogin; 
    } else if (startUrl != null && startURL != '') { 
         PageReference pageRef = new PageReference(startURL);
         return pageRef;
    } else {
        return Page.PubHome; 
    }
} 
-1

We can use the Merge fields in the email tempalte $Network.NetworkUrlForUserEmails

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.