Skip to content

Conversation

@bvaughn
Copy link
Contributor

@bvaughn bvaughn commented Sep 21, 2017

Corresponds to gatsbyjs/gatsby/pull/2185

In development, Gatsby honors these redirects by just loading the toPath page. In production, the new gatsby-plugin-netlify plugin writes a _redirects file that looks like this:

/blog.html  /blog/2017/09/08/dom-attributes-in-react-16.html  302

Based on these Netlify docs and this online validator I expect that to work.

@reactjs-bot
Copy link

reactjs-bot commented Sep 21, 2017

Deploy preview ready!

Built with commit b463ff1

https://deploy-preview-10771--reactjs.netlify.com

@facebook facebook deleted a comment from reactjs-bot Sep 21, 2017
@bvaughn bvaughn changed the title Fixed blog.html redirect Fixed blog.html redirect [WIP] Sep 21, 2017
@bvaughn bvaughn changed the title Fixed blog.html redirect [WIP] Fixed blog.html redirect Sep 21, 2017
@bvaughn bvaughn merged commit 8e5c61f into gatsby Sep 21, 2017
@bvaughn bvaughn deleted the gatsby-better-redirect-support branch September 21, 2017 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants