Closed zeeeeby closed 11 months ago
Glad to see it was solved.
Wanted to highlight that in your example, you could use optional segment to match the two urls you've mentioned without using [...all].tsx
as a wildcard route.
Having src/pages/pub/-[id]/dashboard.tsx
instead, would resolve to /pub/:id?/dashboard
which matches both /pub/:id/dashboard
and /pub/dashboard
.
Hope that helps!
Hello, I have this directory tree
i expect, that path
/pub/dashboard
matches file[...all].tsx
, but it dont match neither/pub/:id/dashboard
nor/pub/*
I didnt understand why. Can you please help?