-
Visualforce redirect issue on forgot password link
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);
Page.setRedirect(true);
return pg;
}Visualforce Page:
<apex:commandLink value="Forgot Password?" action="{!forgotpswd}" />
Log In to reply.
Popular Salesforce Blogs

Salesforce Visualforce Vs Salesforce Lightning Component
Visualforce On the server-side a strong set of tags solved in Visualforce. The visualforce framework is called a center page internet application type. Since the…

How to integrate SharePoint with Salesforce?
This is the era of the cloud. Everything everywhere is connected with each other via cloud-hosted web services and people can access these services from…

How to support your sales team with Salesforce Territory management?
In our Salesforce consulting practice, we’ve met sales managers that asked us whether they would benefit from using territory management in Salesforce. Though the question…
Popular Salesforce Videos
How to Find out Who Deleted a Record in Salesforce
Salesforce administrators can determine who deleted a record by looking at the Recycle Bin or querying for deleted records via API. Watch this video and…
How to: Work at Salesforce — Interview Process | Salesforce Software Engineer
Watch this video to know about the Salesforce Interview Process and how you can start working for this dream company. We hope this video answers…
What is Vlocity (Salesforce Industries) and How It Can Help You Save Millions?
Know What is Vlocity (Salesforce Industries) & How It Can Help You Save Millions with Salesforce Hulk i.e Shrey Sharma in this live webinar. Discover…