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
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
If $location.path contains redundant trailing slash or is missing one, the route will still match and the $location.path will be updated to add or drop the trailing slash to exactly match the route definition.
It seems this does not work as expected if there is an optional named group in route path definition (e.g. /page/:name?). In that case an encoded question mark will appear in the URL if you will navigate to /page/index/ (notice the trailing slash at the end).
From $routeProvider documentation:
It seems this does not work as expected if there is an optional named group in route path definition (e.g.
/page/:name?
). In that case an encoded question mark will appear in the URL if you will navigate to/page/index/
(notice the trailing slash at the end).You can test this issue in this plunkr.
The text was updated successfully, but these errors were encountered: