You need to sign in to do that
Don't have an account?
Nick_Joe
Aura Component - navigation Issue
Hi Everyone, to navigate from one component to another component.but when I load first time Community Page it does not navigate.then again refresh page, It's work.Navigation Please suggest if anyone had faced this issue in the past or have any idea.
thanks in advance.
here is the code:-
var urlEvent = $A.get("e.force:navigateToURL");
urlEvent.setParams({
"url": "/web-version?recordId="+caseId
});
urlEvent.fire();
OR
window.location.href = "/web-version?recordId="+caseId;
Both are not working - First Time Naviagtion show error and the refresh page, It's work.
thanks in advance.
here is the code:-
var urlEvent = $A.get("e.force:navigateToURL");
urlEvent.setParams({
"url": "/web-version?recordId="+caseId
});
urlEvent.fire();
OR
window.location.href = "/web-version?recordId="+caseId;
Both are not working - First Time Naviagtion show error and the refresh page, It's work.
What is the error message shown when it is not working first time?
See related:
https://salesforce.stackexchange.com/questions/224824/lightning-navigation-does-not-refresh-the-state-of-components-how-to-fix-a-bug
https://salesforce.stackexchange.com/questions/281996/in-lightning-record-edit-modal-box-is-not-opening-for-first-time-using-a-get
If this information helps, please mark the answer as best.Thank you