-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Transition): Use { location: replace } when redirecting a transti…
…tion in response to a URL sync This fixes a problem that occurred when the url sync caused a redirection: - URL changes (to `/foo`) - Router synchronizes - Router redirects elsewhere (to `/bar`) - Url is updated Now the browser history has two history entries: - `/foo` - `/bar` --- Now, when the URL is updated, it uses `{ location: replace }` so the browser history only has one entry: - `/bar` Closes angular-ui/ui-router#3187 Closes #15
- Loading branch information
1 parent
7e0a8af
commit 23e2b78
Showing
2 changed files
with
51 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters