-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
URL doesn't change after transition hooks is called. #2455
Comments
Thanks for the bug report. |
Looks like "resetting the url when transition is cancelled", i.e., 0.2.17: e00aa69 |
minimal reproduction: http://plnkr.co/edit/7ZJEeUkAdEfiOFhvJiWH?p=preview |
@tankiJong were you doing a redirect in your The scenario in the plunker I posted one post up happens for the following reason: The original transition occurs when ui-router checks the URL and transitions to the proper state. When we sync the state to the URL like that, we use If your hook is doing a redirect, you can add I'm thinking about this and wondering what the correct behavior should be. Should we propagate the redirected transition's options or not... I'm also wondering if we need |
@christopherthielen In addition, is there any way to change the URL without reload the controller? |
I found this problem in my own work. I will explain this bug by the the sample.
The example is quite nice but i noticed that the URL didn't correctly changed. You may saw this bug by the following steps:
(chris edit: http://christopherthielen.github.io/new-state-vis/#/mymessages/inbox/5648b50cc586cac4aed6836f )
and the bug appears. you will find the page has already jump to the login page but the url kept unchanged.
PS. In this example, onBefore hook is applied.
The text was updated successfully, but these errors were encountered: