Gatsby + Contentful URL Structure Problems #30961
Unanswered
meierpatrick
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm having trouble setting up the proper URL structure using Gatsby + Contentful.
My folder structure looks like this:
I'm using
gatsby-node.js
to query my contentful pages withcreatePages
:The problem that I'm having is that the URL looks like that:
http://localhost:8000/learn/{contenfulGuides}/
But I want to achieve this:
http://localhost:8000/{contentfulPages}/{contentfulGuides}/
I've looked everywhere but haven't found topics about this.
I want to know how to remove the folder name in the URL and instead paste the contentful page slug.
Hope someone can help sending me in the right direction.
Beta Was this translation helpful? Give feedback.
All reactions