2

Issue while redirecting, it is going to related list but not detail.

Component

var navEvt = $A.get("e.force:navigateToSObject");
                navEvt.setParams({
                    "recordId": component.get("v.createdOpp"),
                    "slideDevName": "detail"
                 });
            navEvt.fire();
1
  • Your problem looks strange and funny, the code which you have mentioned above navigates properly to the record detail page.
    – Arna
    Commented May 19, 2017 at 5:11

2 Answers 2

2

See the documentation here. It specifies that "This attribute has no effect in Lightning Experience."

enter image description here

1

Lightning is case sensitive. You've specified Detail, it should be detail. And also for slideDevName detail is the default value.

var navEvt = $A.get("e.force:navigateToSObject");
navEvt.setParams({
    "recordId": component.get("v.createdOpp"),
    "slideDevName": "detail"
 });
navEvt.fire();

Refer this e.force:navigateToSObject

3
  • Still it is not working.
    – Salesforce
    Commented Apr 5, 2017 at 10:35
  • @EffatNaaz Are you getting recordId. Put an alert above setParams and see if you're getting a recordId Commented Apr 5, 2017 at 10:39
  • yes i am getting record id also
    – Salesforce
    Commented Apr 7, 2017 at 6:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .