-
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 Sales Cloud Innovations – Your Key to Higher Revenue
Sales have gone through a tremendous evolution over the years, starting from door-to-door to using advanced technologies. And now they’ve stepped into a hybrid age…
URL Hacking in Salesforce - Episode 2
HEY!!! Welcome back, previously in URL Hacking Episode 1, We saw what URL hacking is all about and how to get the field id’s for…
What Are Salesforce Managed Services?
What Are Salesforce Managed Services? Salesforce Managed Services encompass a range of professional services designed to help businesses manage, maintain, and optimize their Salesforce environment.…
Popular Salesforce Videos
Creating Massive Junction Records with LWC | Salesforce Lightning Tutorial
Don't miss this new interchange session with Jorge Ortega and Alba Rivas! They'll discuss how to build an LWC that allows you to easily create…
How Does SFCC (Headless Commerce) Different From Its Competitors and Why Is It Better? | Salesforce
Let's have look at which one is better SFCC, Shopify, Magento, or Woocommerce. Which one you should choose? Have a glance at this extract from…
Salesforce Salaries In Current Market?
Wondering about the Salesforce salaries in the current market. Join this useful group for Salesforce job & career info and learn all about the Salesforce…