DEV Community

loading...

Netlify, Gatsby and trailing slashes

jmau111 profile image Julien Maury Originally published at blog.julien-maury.dev Updated on ・1 min read

EDIT 20/04/2021:

Greetings 👋🏻

Respectfully (and as a Netlify Pilot), I'd strongly encourage readers to not change Netlify's Pretty URLs functionality and instead to understand the root of the issue here. Disabling Pretty URLs can cause content on a Netlify site to serve its content on both the trailing slash and non-trailing slash URLs which means duplicate content and bad SEO.

We discussed this at length in the following thread under the Gatsby repository and I wrote a subsequent article that covers the depths of it.

Repo discussion: github.com/gatsbyjs/gatsby/discuss...

Article: jonsully.net/blog/trailing-slashes...

Cheers!

Jon Sully

Discussion (2)

pic
Editor guide
Collapse
jon_fm profile image
Jon Sullivan

Greetings 👋🏻

Respectfully (and as a Netlify Pilot), I'd strongly encourage readers to not change Netlify's Pretty URLs functionality and instead to understand the root of the issue here. Disabling Pretty URLs can cause content on a Netlify site to serve its content on both the trailing slash and non-trailing slash URLs which means duplicate content and bad SEO.

We discussed this at length in the following thread under the Gatsby repository and I wrote a subsequent article that covers the depths of it.

Repo discussion: github.com/gatsbyjs/gatsby/discuss...

Article: jonsully.net/blog/trailing-slashes...

Cheers!

Jon Sully

Collapse
jmau111 profile image
Julien Maury Author

I believe you.