Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed blog.html redirect #10771

Merged
merged 2 commits into from
Sep 21, 2017
Merged

Fixed blog.html redirect #10771

merged 2 commits into from
Sep 21, 2017

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.

3 participants