Named routes/Aliasing system for easier navigation #2456
ferretwithaberet
started this conversation in
Ideas
Replies: 1 comment
-
Thanks for raising this idea! I discussed this with @chorobin, here is a quick summary:
This needs more thought put into. As of now, this would be "nice to have" but not a priority feature. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Other routers (e.g. Vue Router) have the option of specifing a
name
property in the route options, this allows us to do stuff likenavigate({ name: "profile", params: { userId: 1 } })
instead ofnavigate({ to: "/account/profile", params: { userId: 1 } })
.The claimed benefits of this, from the above Vue Router link are:
The main benefit for me is no hardcoded URLs, as then we could move routes around without having to update
navigate()
calls.Beta Was this translation helpful? Give feedback.
All reactions