Skip to content
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

$urlRouterProvider.when is ignoring { priority: -1 } #3830

Open
1 of 3 tasks
leviwilson opened this issue May 18, 2021 · 1 comment
Open
1 of 3 tasks

$urlRouterProvider.when is ignoring { priority: -1 } #3830

leviwilson opened this issue May 18, 2021 · 1 comment
Labels

Comments

@leviwilson
Copy link

This issue tracker is for Bug Reports and Feature Requests only.

Please direct requests for help to StackOverflow.
See http://bit.ly/UIR-SOF for details.

This is a (check one box):

  • Bug Report
  • Feature Request
  • General Query

My version of UI-Router is: 1.0.29

Bug Report

Current Behavior:

When configuring a route such as the following:

$urlRouterProvider.when('/{path:.+}', '/404?path', { priority: -1 })

If after the application is loaded I check $urlRouter.rules(), the rule that's associated with this when call has a { priority: 0 } rather than the { priority: -1 } that we specified.

However, if we do this in a .run it works:

$urlRouter.when('/{path:.+}', '/404?path', { priority: -1 })

And the { priority: -1 } is correctly configured in the $urlRouter.rules() for this rule.

Expected Behavior:

That $urlRouterProvider.when has the same interface as $urlRouter.when in that it honors the options passed as the 3rd argument.

@stale
Copy link

stale bot commented Apr 18, 2022

This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs.

This does not mean that the issue is invalid. Valid issues
may be reopened.

Thank you for your contributions.

@stale stale bot added the stale label Apr 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant