You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With URL /foo/staticstring, foo is matched because it matches the pattern and its url rule was registered first. Currently, the first matched URL always wins.
Likewise, with URL /foo/otherstring, foo is matched for the same reasons.
Choose most specific match
Consider implementing heuristics where the most specific match is chosen.
For url: /foo/staticstringwe should detect that foo.bar is more specific than foo.
Deepest state wins
For url: /foo/otherstring we should detect that foo2 is more specific than foo.
Fewer parameters win?
This would have the additional benefit during lazy loading. When states are lazy loaded, there might not be a guarantee of the load order, so less specific urls could be registered before more specific ones.
The text was updated successfully, but these errors were encountered:
…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`
Closesangular-ui/ui-router#3187Closes#15
Currently if you register states with urls like:
With URL
/foo/staticstring
,foo
is matched because it matches the pattern and its url rule was registered first. Currently, the first matched URL always wins.Likewise, with URL
/foo/otherstring
,foo
is matched for the same reasons.Choose most specific match
Consider implementing heuristics where the most specific match is chosen.
/foo/staticstring
we should detect thatfoo.bar
is more specific thanfoo
./foo/otherstring
we should detect thatfoo2
is more specific thanfoo
.This would have the additional benefit during lazy loading. When states are lazy loaded, there might not be a guarantee of the load order, so less specific urls could be registered before more specific ones.
The text was updated successfully, but these errors were encountered: