I have created an angular application and while opening it in browser after ng serve
.
The URL looks like this: localhost:4200
I also have a search functionality which takes the query string from url and shows the results.
The url changes from localhost:4200?qr=dummy
to localhost:4200/?qr=dummy
I want to remove that extra slash before ?qr=dummy
.
Actual: http://localhost:4200/?qr=dummy
Expected: http://localhost:4200?qr=tax
如何使用Location API做到这一点?