Replies: 8 comments 14 replies
-
What that ever supported? https://nextjs.org/docs/pages/building-your-application/routing/dynamic-routes I do think, catch all have to be
|
Beta Was this translation helpful? Give feedback.
-
Another thing to note is that a catch-all segment must be the last part of the URL. While having support for an optional route parameter like |
Beta Was this translation helpful? Give feedback.
-
Is there any news whether this is on the roadmap or not? As @milovangudelj mentioned we would also really appreciate this feature for i18n purposes. |
Beta Was this translation helpful? Give feedback.
-
It is not yet supported, is not it? |
Beta Was this translation helpful? Give feedback.
-
Can't believe that this isn't supported yet. That darn message was added 4 YEARS ago: |
Beta Was this translation helpful? Give feedback.
-
+1. This feature is critical for i18n sites |
Beta Was this translation helpful? Give feedback.
-
@rauchg 👀 |
Beta Was this translation helpful? Give feedback.
-
any updates on it ? |
Beta Was this translation helpful? Give feedback.
-
Summary
I am creating dynamic segments with Next.js. However, if the segment is
[[slug]]
, I am getting the error "Optional route parameters are not yet supported". When it's[[...slug]]
, I don't get the error. It's very strange. What is the solution?My directory structure:
src/app/[[slug]]
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions