0

I'm trying to redirect from a lightning custom page to a record page in classic. I tried this

var navEvt = $A.get("e.force:navigateToSObject");
navEvt.setParams({
    "recordId": caseId,
    "slideDevName": "related"
});
navEvt.fire();

And this

var eUrl= $A.get("e.force:navigateToURL");
eUrl.setParams({
    "url": '/'+ caseId
});
eUrl.fire();

But I'm always getting the lightning version.

1
  • Because both the events you have mentioned will be fired in the context of Lightning Experience, you won't be redirected to Classic
    – Jayant Das
    Sep 24 '18 at 14:54
0

The events you have mentioned here, are both handled by the one.app container.

If you refer to the documentation of these events, you will find the below statement.

This event is handled by the one.app container. It’s supported in Lightning Experience, Salesforce app, and Lightning communities.

I am not sure what is your use case of navigating to the "Classic record details" from LEX but using these events will necessarily means that any redirect to records will be always within that experience.

Also take a look at this trailhead to get some more details on this.

1
  • I would imagine due to him working with cases would likely be to enable the case comment functionality as this currently doesn't work in lighting.
    – Nebbyyy
    Sep 24 '18 at 16:33

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.