Activity Forums Salesforce® Discussions Visualforce redirect issue on forgot password link

  • Piyush

    April 30, 2016 at 5:33 pm

    I have a login page with username and password and forgot password link on salesforce community, when a user enters a wrong password it is throwing error. When the error is thrown and I click on the forgot password link the page is refreshing instead of redirecting to forgot password page. Can anyone help in resolving the issue?

    public PageReference forgotpswd()
    pageReference pg = new pageReference(/apex/pagename);
    return pg;

    Visualforce Page:

    <apex:commandLink value="Forgot Password?" action="{!forgotpswd}" />

  • Himanshu

    May 27, 2016 at 11:50 am

    Hi Piyush,

    Pagereference pg = new Pagereference ('/apex/yourpagename');

    Hope this helps you.

Viewing 1 - 2 of 2 posts

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos