Skip to content

Suggestion to have a redirect defined in a state #1905

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

Closed
rajivramv opened this issue Apr 22, 2015 · 1 comment
Closed

Suggestion to have a redirect defined in a state #1905

rajivramv opened this issue Apr 22, 2015 · 1 comment

Comments

@rajivramv
Copy link

I have seen suggestions for redirect using .when()
but is it possible to define a redirect url/state in the $stateProvider.state definition itself.
In my application, it is semantically appropriate that I navigate to parent state rather than parent.child. Also, if it is handled there then $state.go ('^') from parent.child should go to the grandparent state, if any. I have several such states in my application and I feel it's cleaner to have a feature than use .when ()

ps. Apologies for the spam

@nateabele
Copy link
Contributor

This is being discussed in #1584 and #27. Please direct your comments there. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants