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
Create a named route with a path containing two optional params one after the other, with a trailing slash
Create a router link that links to this route by name using a route object and no params
Observe that the router link href links to "/"
Create a named route with a path containing two optional params one after the other, with no trailing slash
Create a router link that links to this route by name using a route object and no params
Observe that the router link has no href
What is expected?
When no params are supplied to a named route with two or more optional params, the rendered router-link should have an href attribute of "/" regardless of whether a trailing slash is used or not.
What is actually happening?
When no params are supplied to a named route with two or more optional params, the rendered router-link has an href of "/" if the route path has a trailing slash, but has no href if no trailing slash is used.
The text was updated successfully, but these errors were encountered:
Version
4.1.2
Reproduction link
jsfiddle.net/98gw1b3p/
Steps to reproduce
What is expected?
When no params are supplied to a named route with two or more optional params, the rendered router-link should have an href attribute of "/" regardless of whether a trailing slash is used or not.
What is actually happening?
When no params are supplied to a named route with two or more optional params, the rendered router-link has an href of "/" if the route path has a trailing slash, but has no href if no trailing slash is used.
The text was updated successfully, but these errors were encountered: