Next.js Discord

Discord Forum

Unexpected 404 on routes with hyphens/dashes (-) in the name on 14.2.3

Answered
Scale parasitoid posted this in #help-forum
Open in Discord
Scale parasitoidOP
I have a project that is using 14.1.4 in production with some routes that have hyphens in them, but when I update to 14.2.3 those routes no longer work and return 404s. Is there some new configuration to allow hyphens to work in routes, or is this a regression in 14.2.x? The same behavior is exhibited in all 14.2.x versions.

example route that fails:

pages
  |- my-route.tsx
  |- something-else
      |- index.tsx
 app
  |- my-other-route
      |- page.tsx
Answered by Scale parasitoid
nvm - I see this is fixed in 14.3.0-canary.14
View full answer

1 Reply

Scale parasitoidOP
nvm - I see this is fixed in 14.3.0-canary.14
Answer