Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Salesforce
  3. Question
Salesforce

Experience Cloud login navigation using LWC. How to redirect the user to the home page after using a session for authentication in Experience Cloud LWC?

Asked by Aaditya Srivastva Aug 23, 2023 1.4K views 1 answer
Share

About this question

 have built a custom LWC login page under the experience builder site. It uses the site. login method and custom apex controller to find out the authentication of a user. After the authentication, the page goes back to LWC. When navigating to the home page, I am finding that the navigationMixin is providing a URL, which opens a new tab, but it cannot refresh the present page. 

Even after applying [removed].href, the navigation problem is still there. It does not navigate the user. My question is, how can the user be redirected to the home page after the authentication happens in Experience Cloud LWC? 

Your answer

1 Answer

More Salesforce discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.