when testing on localhost everything works great:
http://localhost:4200/#/?referralId=1
the url stays in the bowser and I am able to access my params. But when I upload the app to the server and I go to this url:
https://www.betradating.com?referralId=1
the browser is refreshing automatically, losing the params and displaying:
https://www.betradating.com/#
How can I fix this?
It looks like you're using HashLocationStrategy?
You must add a
<base href>element to the application's index.html for this type of HTML5 routing to work (pushState routing).Add the <base> element within the <head> tag: