aravindballa / gatsby-theme-andy

A Gatsby theme to build Andy style websites. 📑
343 stars 46 forks source link

pathPrefix in gatsby-config.js causes backlink to prefix pathPrefix twice #33

Closed pbamotra closed 3 years ago

pbamotra commented 3 years ago

Hi I'm trying to host my notes under: https://hostname/second-brain/

I put the pathPrefix in gatsby-config.js as mentioned here. But this leads to cross-links having the prefix twice in their paths. This works fine on laptop but breaks on phones.

module.exports = {
  pathPrefix: `second-brain`,
  siteMetadata: {
    title: 'My second brain'
  },
  plugins: [`gatsby-theme-andy`],
};

image

pbamotra commented 3 years ago

Used this solution: https://github.com/ChristopherBiscardi/gatsby-mdx/issues/377

Closing.