0

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 detail – Chris Jun 18 '19 at 11:49
  • Let's assume I use "http://localhost:4200/index.html?name=max&id=085" . My default route is 'session'. When I launch the application, URL is updated to "http://localhost:4200/#/session". But I want to preserve it like "http://localhost:4200/index.html?name=max&id=085#session". Is there any way to achieve this? – user3679264 Jun 18 '19 at 12:26
  • This may be useful : https://stackoverflow.com/questions/36985572/how-to-define-default-route-with-parameters-in-angular-component-router – Chris Jun 19 '19 at 05:27

0 Answers0