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

Commit cfc8b41

Browse files
committed
refactor($location): Simplify expression.
1 parent f58d4fb commit cfc8b41

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
@@ -912,7 +912,7 @@ function $LocationProvider() {
912912
// update $location when $browser url changes
913913
$browser.onUrlChange(function(newUrl, newState) {
914914

915-
if (isUndefined(stripBaseUrl(appBaseNoFile, newUrl))) {
915+
if (!startsWith(newUrl, appBaseNoFile)) {
916916
// If we are navigating outside of the app then force a reload
917917
$window.location.href = newUrl;
918918
return;

0 commit comments

Comments
 (0)