Skip to content

Commit

Permalink
fix: revert admin redirect (gatsbyjs#9728)
Browse files Browse the repository at this point in the history
Resolves issue created in gatsbyjs#9269

<!--
  Q. Which branch should I use for my pull request?
  A. Use `master` branch (probably).

  Q. Which branch if my change is a bug fix for Gatsby v1?
  A. In this case, you should use the `v1` branch

  Q. Which branch if I'm still not sure?
  A. Use `master` branch. Ask in the PR if you're not sure and a Gatsby maintainer will be happy to help :)

  Note: We will only accept bug fixes for Gatsby v1. New features should be added to Gatsby v2.

  Learn more about contributing: https://www.gatsbyjs.org/docs/how-to-contribute/
-->
  • Loading branch information
zslabs authored and gpetrioli committed Jan 22, 2019
1 parent 8049bf2 commit cfd6632
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions packages/gatsby-plugin-netlify-cms/src/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,3 @@ exports.onCreateWebpackConfig = (
webpack(config).run()
}
}

exports.onPostBuild = ({ actions }, { publicPath = `admin` }) => {
const { createRedirect } = actions

createRedirect({
fromPath: `/${publicPath}`,
toPath: `/${publicPath}/`,
isPermanent: true,
})
}

0 comments on commit cfd6632

Please sign in to comment.