Hey guys
Is there way to set default parameters to route? I need some approach to change query parameters to defaults when route is entered
I tried to call setQueryParams in route root onCreated template callback and in route triggers. Also tried to change queryParams in route triggers. All this leads to the same result:
- go to route (https://some-url/)
- set queryParams (https://some-url?param=value)
- push url with params to history (https://some-url?param=value)
- push initial url to history (https://some-url)
it happens only in case when user goes to route by clicking a link
Also route state is correct: query params are already set. I think problem is in pushing state to history.
Will appreciate any idea