@Bing94 wrote:
I have a login screen that have 2 different UI: Normal login and Quick login. And I also have two button
{{#link-to 'login'}} Normal login {{/link-to}} {{#link-to 'login' (query-params isQuickLogin=true)}} Quick login {{/link-to}}
For quick login button, I add a query param ‘isQuickLogin’, which is also declared in the controller.
If I click ‘Normal login’, it will navigate to login screen without param: http://localhost:4200/login
If I click ‘Quick login’, I will get the param, then I can render something for quick login: http://localhost:4200/login?isQuickLogin=true
However, If I click ‘Normal login’ again, the param is back. http://localhost:4200/login?isQuickLogin=true
That is not what I want, I have not add param for Normal Login, why did I get that param? Seems it is cached in somewhere, but I can not find it in the guide. I am referring to:
How to clear the query param? Can anyone help me? Thanks
Posts: 4
Participants: 2