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

Commit 27c671a

Browse files
committed
fix($browser): .url() should return self in setter mode
1 parent 5c611e8 commit 27c671a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ng/browser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ function Browser(window, document, $log, $sniffer) {
170170
// IE<10 from getting into redirect loop when in LocationHashbangInHtml5Url mode.
171171
// See https://github.com/angular/angular.js/commit/ffb2701
172172
if (lastBrowserUrl === url && (!$sniffer.history || sameState)) {
173-
return;
173+
return self;
174174
}
175175
var sameBase = lastBrowserUrl && stripHash(lastBrowserUrl) === stripHash(url);
176176
lastBrowserUrl = url;

0 commit comments

Comments
 (0)