Closed davidmenendez closed 2 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
gatsby-theme-carbon | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Sep 10, 2024 8:47pm |
Name | Link |
---|---|
Latest commit | 7ce5cac24d5212340d42540fcf52ba121b987949 |
Latest deploy log | https://app.netlify.com/sites/gatsby-theme-carbon/deploys/66e0a830d8e7fe00082aebf6 |
Deploy Preview | https://deploy-preview-1508--gatsby-theme-carbon.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
@davidmenendez I've identified an issue with this PR, the environment variable process.env.PATH_PREFIX
is specific to carbon-for-products-website. This means that the fix will only apply to that website or other websites with a similar configuration for setting the pathPrefix
.
I have created another PR with a more generic solution. This fix will work for carbon-for-products-website, but instead of retrieving the pathPrefix from an environment variable, we can use a GraphQL query to fetch it. This will ensure that the fix works for all Gatsby apps, regardless of the environment variable they use to set pathPrefix.
closing in favor of the solution submitted here https://github.com/carbon-design-system/gatsby-theme-carbon/pull/1509
fixes issue where treenav isn't responding correctly to url path in production