-
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
Import Data With The Info Import Wizard | Salesforce Guide
Today we are going to import data with the Import Wizard. First, you have to prepare your data to import, then you can use the…
DevOps Tools for Use with Salesforce in 2024
Salesforce is a central component of most companies’ business tech stack. If this resonates with you, you might have already started using DevOps tools to…
How Trailhead Helps People to Learn Salesforce?
Trailhead is Salesforce's free web learning platform committed totally to teach individuals to utilize Salesforce. It provides the user with a guided, learning path with a set of…
Popular Salesforce Videos
Types of Generative AI Models | How Does Generative AI Work?
Have you ever wondered how AI can be so creative? How do they generate art, music, and even text all on their own? Look no…
Join Grazitti Interactive At Dreamforce 2022 | Salesforce
Dreamforce, Salesforce’s flagship conference is here once again. Grazitti Interactive, as a proud Navigator Sponsor invites you to meet our experts and discuss our custom…
How to Track UTMs from Pardot Through to Salesforce Campaigns
UTM parameters can be used to track the traffic from a variety of sources including email, social media, banner ads, and more. But how can…