I need to preserve the index.html and query params in URL as it is. But when default route is loaded, they are removed and the default route is added with '#'. Is there any way to keep index and query params permenantly on URL.
-
Can you explain the scenario in detailChris– Chris2019-06-18 11:49:24 +00:00Commented Jun 18, 2019 at 11:49
-
Let's assume I use "localhost:4200/index.html?name=max&id=085" . My default route is 'session'. When I launch the application, URL is updated to "localhost:4200/#/session". But I want to preserve it like "localhost:4200/index.html?name=max&id=085#session". Is there any way to achieve this?user3679264– user36792642019-06-18 12:26:36 +00:00Commented Jun 18, 2019 at 12:26
-
This may be useful : stackoverflow.com/questions/36985572/…Chris– Chris2019-06-19 05:27:59 +00:00Commented Jun 19, 2019 at 5:27
-
1Does this answer your question? Angular 2\4 hash url keep index.htmlTylerH– TylerH2023-01-25 15:13:59 +00:00Commented Jan 25, 2023 at 15:13
Add a comment
|