Skip to main content

We have created a Lightning page 'Create_WW_Page' and added LWC to it.  

Another aura component after the creation of the record is redirected to the lightning page, below is the code.  

var navEvt = $A.get("e.force:navigateToURL");

navEvt.setParams({

                                "url": "/lightning/n/Create_WW_Page?c__eventRecordId="+EvtId,

 "isredirect": "true"

                            });

                            navEvt.fire();

The problem is that when we redirect to the URL for the first  EvtId (let's say 'A') it correctly initiates the LWC, but when we redirect it a second time for another EvtId(let's say 'B'), it will not initiate the LWC and show the data of previous EvtId 'A'.  so we need to refresh it manual to see data related to EvtId 'B'

How to have a refreshed lightning page every time we redirect from the aura component? 

 

#Trailhead Challenges  #Sales Cloud  #Salesforce Developer #Lightning Aura Component #LWC

답변 1개
  1. 2024년 1월 16일 오후 2:24

    Hi @Megha Jain, Hope you are doing well.

    I am from the Trailhead help team. May I request you please let us know if this is part of any Trailhead module/project that you are working on so that we can understand better and can help you further.

    If this is related to any Trailhead badge, kindly share the URL of the Trailhead so that we can assist further.

    Kind Regards,

    Sathvika T

    Trailblazer Help.

0/9000