You need to sign in to do that
Don't have an account?
Akanksha Gupta 58
how to fetch the parameters of URL in lightning component?
Hi,
I have a URL "https://gidev-groupinsurance.cs61.force.com/MemberPortal/s/caseclaimstatus?id=5004C0000033pqlQAA" . I want to use the "id" parameter in my lightning JS controller. How to do that?
I have a URL "https://gidev-groupinsurance.cs61.force.com/MemberPortal/s/caseclaimstatus?id=5004C0000033pqlQAA" . I want to use the "id" parameter in my lightning JS controller. How to do that?
http://sfdcMonkey.com
You can do with window.location.href ;. But you can use lightning:isUrlAddressable interface to make this easy rather than using window.location
Refer this link
https://developer.salesforce.com/docs/component-library/bundle/lightning:isUrlAddressable/documentation