Implement navigateToParentRoute() utility / composable ... #2401
michealroberts
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey @posva 👋
I was wondering if it were possible to present the following idea I have had around navigating specifically back to the parent view, from a nested view. Essentially, I often use something like this:
To find the matches for the current route, and if we have found more than 2 matches, then we are in a child route, and we can route back.
I was wondering what your thoughts were on the robustness of this approach, and if this could either be include in
vue-router
as a utility or if it should live somewhere else ...Many thanks 💚
Beta Was this translation helpful? Give feedback.
All reactions