function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ShanmukaShanmuka 

How to pass changes made in one lightning page to another page

Hi all,
I have one requirement , for istance i have cart summary page in lightning in that i would fill some in formation that same would be reflect to order confirmation page how i do that suggest me

Thanks & Regards 
shanmuka
Ajay K DubediAjay K Dubedi
Hi Shanmuka,
I have gone through your problem and found a solution.

There is an example below-

The force:navigateToURL event is used to navigate to a URL.
Use a relative URL to stay in your current app and go to a different page.
 
goToNewPage: function(component, event, helper) {

    var urlEvent = $A.get("e.force:navigateToURL");
    urlEvent.setParams({
        "url": "/newPage"
    });

    urlEvent.fire();
}
Use an absolute URL to open an external website in a new browser tab.

goToExternalSite: function(component, event, helper) {

    var urlEvent = $A.get("e.force:navigateToURL");
    urlEvent.setParams({
        "url": "http:www.google.com"
    });

    urlEvent.fire();
}

You can refer to the below links to get the best solution to your query.

https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/components_navigation_page_definitions.htm

https://salesforce.stackexchange.com/questions/262244/send-value-from-component-a-in-one-page-to-component-b-in-another-page-navi/262254

​​​​​​​https://salesforce.stackexchange.com/questions/75431/how-to-go-from-one-lightning-page-to-another-lightning-page-through-a-click (http://https://salesforce.stackexchange.com/questions/75431/how-to-go-from-one-lightning-page-to-another-lightning-page-through-a-click)


I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Ajay Dubedi
www.ajaydubedi.com