The url of the lightning component that i could see is like "/lightning/cmp/c__LCMP_AddLeadLine?c__leadId=00Q1g000004qAR5"
But "component.get("v.pageReference").state.c__leadId" gives the output as "00Q1g000004HUEe" And "decodeURIComponent(window.location.search.substring(1))" gives the output as "c__leadId=00Q1g000004HUEe"
The ids are changing based the the previous lead opened. Looks like a cache or some wierd salesforce issue. I have even tried disabling 'Enable secure and persistent browser caching to improve performance' in session settings and still the issue persists.
Can some one please help me here.