-
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
What are Data Types in Apex in 2023?
What is a Data Type in Salesforce Apex? In Salesforce Apex, a data type is like a category or a label that tells the computer…
Deployment on Production Environment in Salesforce
When we move any code or component into a production environment we need to keep the below terms for our understanding: These terms are-: Change…
Salesforce Commerce Cloud Explained: Pricing, Hosting, Performance, Scalability
Nasdaq forecasts that 95% of purchases will be made online by 2040. Statistics also say that the global e-commerce market is expected to reach $18.89 trillion by 2027, compared to $5…
Popular Salesforce Videos
What is Lightning Unsaved Changes ? | How and Where to Use it in Salesforce?
In this video, you will learn what is Lightning Unsaved Change and how you can use it in your Lightning Components. I will create a…
How Salesforce Industries can be Used on Top of Salesforce?
Salesforce Industries offers pre-built solutions on the Salesforce platform that solve the needs of particular industries. Vlocity takes these common requirements and packages them into…
Salesforce 101 for Salespeople
In this video, Oliver Sholder breaks down Salesforce 101 for us. He covers everything from what Salesforce is and does, to how it can benefit…