-
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 Apex Basics? A Guide in 2023
The primary languages required to know in salesforce are: - Apex – It is used to write the business logic or we can say it…
How Salesforce Financial Services Cloud Solves Problems For FinTech Companies
Working in the financial services industry is not an easy-breezy thing to do. It is all about managing people’s wealth and helping them plan their lives, literally.…
Salesforce Data Cleansing Guide
The Salesforce data cleansing process involves identifying, correcting, and maintaining accurate and consistent data within the Salesforce platform. Data cleansing is essential to ensure the…
Popular Salesforce Videos
What's Up with What'sApp? | Explained by Salesforce
With over 2 billion users, WhatsApp is the world’s most popular messaging app. WhatsApp channels are supported by Digital Engagement for Service Cloud. You can…
Lightning Component Development - Applying Stylesheet, Create Basic Lightning Component
Welcome to Lightning Component Development Sessions. This is the initiative to help Salesforce Community in learning Lightning which we believe is future of Salesforce. Check…
Case Study: Connecting Ferries with Salesforce IoT Explorer
The data that Salesforce IoT Explorer brings to the table helps businesses take real-time business decisions that translates into better customer service. Salesforce, in its…