-
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
Controller runs twice when activating a state with slash in the params #2339
Comments
|
+1 I have the same issue |
It s not like nobody is using a parameter as return path with / inside ... How it s possible to have this bug if there is testing ? |
Hello, I am facing the similar issue. the controller is called twice which is causing a major problems. I am surprised the issue still exists . Can anyone help me how can i resolve the issue. The parameter passed here is mandatory and it can be Y or N. See the example. Configuration
}) |
+1 |
+1 I should note that the second time the controller runs, the parameter IS indeed properly URL encoded, as opposed to the first time where it is not. |
Same here. |
Closes angular-ui#2339 Closes angular-ui#2172 Closes angular-ui#2250 Closes angular-ui#1119
This is happening again as of 0.3.1. Caller:
State Module:
Additionally, the route in the address bar is reset to default As noted above, the same workaround from before still works, that is, replacing |
@DeathGaze can you put this in a plunker ? http://bit.ly/UIR-Plunk |
When activating a state with a slash in the params, it will call that state's controller twice.
I wrote some tests to demonstrate:
http://plnkr.co/edit/WgBVFpArGhamZe5mVtWz?p=preview
Thanks to @kathygit for discovering this, as well as providing a workaround (url encoding the slashes) in the issue referenced below.
Tested with Angular 1.4.7 and UI-Router 0.2.15.
The text was updated successfully, but these errors were encountered: