The user calls the app\'s url with the parameters and uses my app. While switching between different routes the url parameters should be kept visible in the
Currently there is no way to set it globally. Using queryParamsHandling
seems to be the only option:
<a [routerLink]="['/login']" queryParamsHandling="preserve"></a>
Or when using router:
router.navigate('/login', { queryParamsHandling: "preserve" })
The other possible option for queryParamsHandling
is merge
.