Reduce usage of linkPrefix in 1.x #475
Labels
help wanted
Issue with a clear description that the community can help with.
stale?
Issue that may be closed soon due to the original author not responding any more.
Milestone
A common problem with building sites is that you may deploy the same site in dev/testing/prod with different URL roots. Often it's just
/
but perhaps you're deploying to Github pages at YOUR_NAME.github.io/PROJECT_NAME in which case you'd need to prefix all links with/PROJECT_NAME
.In 0.x we just run everything through a helper function
linkPrefix
in the included module gatsby-helpers. This works but it's a bit annoying to have to surround every link on your site with this special function. Especially when Webpack + React Router can do the heavy lifting for us withpublicPath
in Webpack andbasename
in React Router.I've already fixed this in Webpack in the 1.0 branch but adding
basename
support to react-router still needs to happen.The text was updated successfully, but these errors were encountered: