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.
Empty hash at the end of URL causes page reload in HTML5 mode #10397
Closed
Description
For example, If I open http://localhost/#
, page is reloaded to http://localhost/
.
Looks like issue happens here: https://github.com/angular/angular.js/blob/master/src/ng/location.js#L882
When http://localhost/#
loaded $location.absUrl()
returns http://localhost/
and $browser.url($location.absUrl(), true)
called, which causes page reloading.