Skip to content

Commit 48aeaff

Browse files
fix(urlRouter): allow .when() to redirect, even after a successful $state.go()
- This partially reverts a change from 0.2.13 intended to stop infinite redirects. - b267ecd - #1573 - This will be likely be re-reverted in 1.0 Closes #1584
1 parent fbc8e42 commit 48aeaff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/urlRouter.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,8 @@ function $UrlRouterProvider( $locationProvider, $urlMatcherFactory) {
279279
if (evt && evt.defaultPrevented) return;
280280
var ignoreUpdate = lastPushedUrl && $location.url() === lastPushedUrl;
281281
lastPushedUrl = undefined;
282-
if (ignoreUpdate) return true;
282+
// TODO: Re-implement this in 1.0 for https://github.com/angular-ui/ui-router/issues/1573
283+
//if (ignoreUpdate) return true;
283284

284285
function check(rule) {
285286
var handled = rule($injector, $location);

0 commit comments

Comments
 (0)