Relative page links in markdown files within gatsby

sgpropguide
1 min readMar 19, 2019

--

Let say within your markdown file in your gatsby project, you want to link to another page. Eg. you want to link to /about using [About](/about)

Thanks for this stackoverflow article, the answer is pretty simple.

  1. npm install gatsby-plugin-catch-links
  2. add gatsby-plugin-catch-links to gatsby-config.js
  3. write your link exactly as per example above (see the raw version of this page in the using-remark repo)

--

--