I am migrating an existing angular 4 app from PathLocationStrategy to HashLocationStrategy
and need to keep entry point url working. It looks something like www.test.com/?param1=123
The problem is that as soon as I switch it to HashLocationStrategy, query params are not accessible through activatedRoute.queryParams anymore. (www.test.com/#/?param1=123
works fine but I need to preserve the original url entry as well)
So is there a way to get param1 value from www.test.com/?param1=123
with HashLocationStrategy
? I don't really want to create an empty landing page that will redirect to www.test.com/#/?param1=123
unless I can't avoid it.