Skip to main content
added 7 characters in body; edited tags
Source Link
Martin Lezer
  • 7.3k
  • 5
  • 27
  • 41

I used <lightning:navigation aura:id="nav" /> to naviagate from one component to another component. 'TestComp' is the destination component to which i want to naviagate. Its working fine in dev orgs but not in all the sand boxes. In some of the sand boxes Its naviagating to 'TestComp' but its not passing the 'ID' and 'Name' parameters in URL. Is there any org settings which restrict URL? or its because of other problem.

Hoping for the help.

This is the code snippet.

component.find("nav").navigate({ type: "standard__component", attributes: { componentName: "c:TestComp" }, state: { ID : data.Id, Name:data.Name } });

   component.find("nav").navigate({
        type: "standard__component",
        attributes: {
            componentName: "c:TestComp"
        },
        state: {
            ID : data.Id,
            Name:data.Name
        }
    });

I used <lightning:navigation aura:id="nav" /> to naviagate from one component to another component. 'TestComp' is the destination component to which i want to naviagate. Its working fine in dev orgs but not in all the sand boxes. In some of the sand boxes Its naviagating to 'TestComp' but its not passing the 'ID' and 'Name' parameters in URL. Is there any org settings which restrict URL? or its because of other problem.

Hoping for the help.

This is the code snippet.

component.find("nav").navigate({ type: "standard__component", attributes: { componentName: "c:TestComp" }, state: { ID : data.Id, Name:data.Name } });

I used <lightning:navigation aura:id="nav" /> to naviagate from one component to another component. 'TestComp' is the destination component to which i want to naviagate. Its working fine in dev orgs but not in all the sand boxes. In some of the sand boxes Its naviagating to 'TestComp' but its not passing the 'ID' and 'Name' parameters in URL. Is there any org settings which restrict URL? or its because of other problem.

Hoping for the help.

This is the code snippet.

   component.find("nav").navigate({
        type: "standard__component",
        attributes: {
            componentName: "c:TestComp"
        },
        state: {
            ID : data.Id,
            Name:data.Name
        }
    });
Source Link

lightning:navigation not passing the States in URL

I used <lightning:navigation aura:id="nav" /> to naviagate from one component to another component. 'TestComp' is the destination component to which i want to naviagate. Its working fine in dev orgs but not in all the sand boxes. In some of the sand boxes Its naviagating to 'TestComp' but its not passing the 'ID' and 'Name' parameters in URL. Is there any org settings which restrict URL? or its because of other problem.

Hoping for the help.

This is the code snippet.

component.find("nav").navigate({ type: "standard__component", attributes: { componentName: "c:TestComp" }, state: { ID : data.Id, Name:data.Name } });