I\'m trying to redirect old URLs (links in email templates) from a previous site to another route like this:
if (route.url.indexOf(\'/#/\') !== -1) { thi
I had the exact same problem, but found another cause to explain it.
This was because of a HTML attribute href="#" on my anchor link where I had my onClick method calling the router.navigate().
href="#"
onClick
router.navigate()
Detailed answer here:
https://stackoverflow.com/a/61595269/3992814