We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Dynamic routes should not be caught before any other routes.
I have the following structure:
/routes/$pageId+.tsx /routes/posts/index.tsx /routes/posts/$id.tsx
The route $pageId+ catches all paths. The user cannot get /posts or /posts/$id, these paths are caught by the first route.
$pageId+
/posts
/posts/$id
I have the following structure (notice $pageId without +):
$pageId
+
/routes/$pageId.tsx /routes/posts/index.tsx /routes/posts/$id.tsx
The user cannot get /posts, that path is caught by the $pageId route (only /posts/index is working for that page).
/posts/index
The text was updated successfully, but these errors were encountered:
I think the following formula should be changed somehow to order dynamic routes after other routes
aleph.js/server/routing.ts
Line 211 in 9a103a1
Sorry, something went wrong.
No branches or pull requests
Dynamic routes should not be caught before any other routes.
Example 1
I have the following structure:
The route
$pageId+
catches all paths. The user cannot get/posts
or/posts/$id
, these paths are caught by the first route.Example 2
I have the following structure (notice
$pageId
without+
):The user cannot get
/posts
, that path is caught by the$pageId
route (only/posts/index
is working for that page).The text was updated successfully, but these errors were encountered: