I am using the below snippet in our code

if( (typeof sforce != 'undefined') && (sforce != null) ) {
            sforce.one.navigateToURL("/home/home.jsp", true);
} else {
            window.location = link1;

In lightning when the page redirects some dynamic id is getting added in URL one/one.app#eyJjb21wb25lbnREZWYiOiJob21lOmxhbmRpbmciLCJhdHRyaWJ1dGVzIjp7fSwic3RhdGUiOnt9fQ%3D%3D

and It gives an error message: 'The page no longer exists. Try reloading it. If the problem persists, contact Salesforce support.

Could you please guide me??

  • I think the %3D in the end should be the cause of error. You Anchor point translates to base64 representation eyJjb21wb25lbnREZWYiOiJob21lOmxhbmRpbmciLCJhdHRyaWJ1dGVzIjp7fSwic3RhdGUiOnt9fQ== which when decoded gives {"componentDef":"home:landing","attributes":{},"state":{}} – manjit5190 Oct 23 at 8:21

If you want to navigate to lightning home page, try:

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.