8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a0350d commit 0249c74Copy full SHA for 0249c74
packages/nuxt/src/pages/utils.ts
@@ -424,7 +424,7 @@ function parseSegment (segment: string, absolutePath: string) {
424
state = SegmentParserState.initial
425
} else if (c && PARAM_CHAR_RE.test(c)) {
426
buffer += c
427
- } else {
+ } else if (state === SegmentParserState.dynamic || state === SegmentParserState.optional) {
428
logger.warn(`'\`${c}\`' is not allowed in a dynamic route parameter and has been ignored. Consider renaming \`${absolutePath}\`.`)
429
}
430
break
0 commit comments