Skip to content
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
@dtritus

Description

@dtritus

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.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions