Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit f3b088a

Browse files
refact(): no need to trim empty hash from $location.absUrl()
Only `$browser.url()` ever contains an empty hash fragment so that is the only call that needs to be trimmed. Closes #10515
1 parent ef1a9d2 commit f3b088a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ng/location.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,7 @@ function $LocationProvider() {
917917
// update browser
918918
$rootScope.$watch(function $locationWatch() {
919919
var oldUrl = trimEmptyHash($browser.url());
920-
var newUrl = trimEmptyHash($location.absUrl());
920+
var newUrl = $location.absUrl();
921921
var oldState = $browser.state();
922922
var currentReplace = $location.$$replace;
923923
var urlOrStateChanged = oldUrl !== newUrl ||

0 commit comments

Comments
 (0)