nuxt-modules / prismic

Easily connect your Nuxt.js application to your content hosted on Prismic

Home Page:https://prismic.nuxtjs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Folders with hyphens '-', causing the route generation to fail.

phillysnow opened this issue · comments

When deploying a site on Netlify with a route like: .../actueel/at-work/max-at-work/ it fails with the following error.

Error generating route "/actueel/at": This page could not be found

It doesn't seem related to the link resolver or the route resolver. The route is then generated at .../max-at-work/ and the page queries fine.

My thought is that it's probably related to this plugin or Nuxt since it generates the dynamic routes.

Any thoughts.

commented

Turns out it's an issue with the API itself, tracked internally here: https://github.com/prismicio/issue-tracker-wroom/issues/513

For anyone experiencing this issue you can migrate from the apiOptions.routes options to a classic link resolver to fix it.

We'll keep you updated here of the status of this issue 🙂

commented

Update 05/04/2021:

  1. A PR has been made to fix this, it should land shortly!
commented

Fix landed on the API a while ago ☺️