Skip to content

Commit

Permalink
fix(attachRoute): Do not update URL after syncing from url
Browse files Browse the repository at this point in the history
Set `{ location: false }` when transition originates from a URL parse.
Related to #1573
Closes #2730
  • Loading branch information
christopherthielen committed May 7, 2016
1 parent b3d3b56 commit 8742511
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/state/stateQueueManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export class StateQueueManager {

$urlRouterProvider.when(state.url, ['$match', '$stateParams', function ($match, $stateParams) {
if ($state.$current.navigable !== state || !equalForKeys($match, $stateParams)) {
$state.transitionTo(state, $match, { inherit: true });
$state.transitionTo(state, $match, { inherit: true, location: false });
}
}]);
}
Expand Down

0 comments on commit 8742511

Please sign in to comment.