Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add parent route fragments to Match #253

Open
orestis opened this issue Apr 3, 2019 · 0 comments
Open

Add parent route fragments to Match #253

orestis opened this issue Apr 3, 2019 · 0 comments

Comments

@orestis
Copy link

orestis commented Apr 3, 2019

When having a route structure like so:

["/messages"
 {:data "..."}
 [""
  {:name :message-list}]
 ["/:message-id"
  {:name :message-detail}]]

When /messages/abc is matched, the Match result only indicate that the route :message-detail was matched. Sometimes it's useful to also have all the "parent" routes above it available as a vector.

The proposed workaround of having a custom key (like :section which could be either a set or a vector) is good enough for me, and potentially solves my use case even better, so perhaps this is a moot issue anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants