The url entered directly is not showing the query parameters in the url.
i have given my route path as:
{ path: 'userdetails/:id', component: userdetailscomponent}
And my url is need to work as
https://www.(site).com/userdetails?id=5.
But the url is working as:
https://www.(site).com/userdetails
The query params is not showing when the url is directly opened in the browser. The query params are disappearing and the url is going to main route with out query param .How can i get the query param to work and is their any way to get the lost query params?