This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Unexpected reload when accessing '/' route in html5mode #13271
Open
Description
There is a issue with the html5mode when we first load the application.
If you go to http://angularjs.learnwebtutorials.com/demo/24/, you will find a very simple html5mode application.
If you navigate to http://angularjs.learnwebtutorials.com/demo/24/#!/content you will see that angular redirects you to /demo/24/content and loads the correct template.
However, if you navigate to http://angularjs.learnwebtutorials.com/demo/24/#!/, angular will redirect you to /demo/24/ but right before loading the root template, the browser will trigger a new request to the same page loading the application for the second time.
I am having this problem with angular 1.4.2 and 1.4.6.