I had been experiencing some weird auto redirection issues during which there is some unhandled exception caught in JavaScript context; it automatically redirects to http://localhost/#
under my Windows 10 machine for no reason (normally it would be captured under Chrome Console Tab, but now it simply redirects to localhost
).
A few thing that I had checked:
- Trying to reproduce this problem at Mozilla Firefox, the same result happened. So probably it's not browser issues.
- Restarted Visual Studio, restarted IIS. Not working.
- Checked IIS error redirection, nothing wrong (default and not set to anything special, in fact I doubt this is the part that could actually redirect the JavaScript level error).
I could not tell if it's problem from AngularJS routing issues, in fact I had not set / used the routing module too.