This is my code:
<a [routerLink]="['/detailhistory']" [queryParams]="{ 'path': item.path}">{{ item.name }}</a>
how to hide query params in browser url after redirected?
This is my code:
<a [routerLink]="['/detailhistory']" [queryParams]="{ 'path': item.path}">{{ item.name }}</a>
how to hide query params in browser url after redirected?
You can use skipLocationChange
as a parameter which will keep the current URL.
<a [routerLink]="['/detailhistory']" [queryParams]="{ 'path': item.path}">{{ item.name }} [skipLocationChange]="true"</a>
<a [routerLink]="['/detail' ]" [queryParams]="{ 'path': item.path}" skipLocationChange></i></a>
This solved my issue.