Browse Source

Added semicolon to fix Prettier

main
Brian Vaughn 7 years ago
committed by GitHub
parent
commit
331fd30e59
  1. 2
      gatsby-node.js

2
gatsby-node.js

@ -127,7 +127,7 @@ exports.createPages = async ({graphql, boundActionCreators}) => {
// A leading "/" is required for redirects to work,
// But multiple leading "/" will break redirects.
// For more context see github.com/reactjs/reactjs.org/pull/194
const toPath = slug.startsWith('/') ? slug : `/${slug}`
const toPath = slug.startsWith('/') ? slug : `/${slug}`;
redirectToSlugMap[fromPath] = slug;
createRedirect({

Loading…
Cancel
Save