You need to sign in to do that
Don't have an account?
Kelvin Tam 11
lightning web component get url parameter
Hi All,
Would the lightning web component available to get the url parameter?
The url rediret everytime when enter salesforce ligthning.
Thank you
Would the lightning web component available to get the url parameter?
The url rediret everytime when enter salesforce ligthning.
Thank you
If you are looking passing parameter with on URL you can use this :
import { NavigationMixin } from 'lightning/navigation';
connectedCallback() {
this[NavigationMixin.GenerateUrl]({ "type": "standard__webPage", "attributes": { "url": "http://salesforce.com" } }, { replace: true })
}
Please let me know if it helps.
Thanks
Thank you for your answer.
My current condition is below
once I press enter for below url
https://salesforce.com/lightning/page/home?test=test
the browser then redirect to
https://salesforce.com/lightning/page/home
therefore I cannot catch the "test=test" information.
Thank you