Dynamic nested pages
Is there a way to have a route structure where there is an unknown amount of slugs eg:
So that the filters will always affect the list, eg clicking on a filter will add a slug but not rerender the page, just the list component?
Tried with
index
folder that has [...slug].vue
but not sure how to have single-post after that regardless of the number of slugs?7 Replies
Do
/filterX/filterY/list
and /filterY/list
display filtered results from the same source?/list
has a list component that filters the array from pinia based on the route params eg filterX
and filterY
Would query parameters not suffice? Eg;
/list?filterX=x&filterY=y…
No, unfortunately. There wouldn't be a problem with that 😄
Unless
/filterX/list
and /filterX/filterY/list
although similar have very distinct features
Are you trying to take a different approach?the approach is defined in the post title.
Yhh I read it. Just not sure why, but maybe someone else can help you out 👍