Skip to content

Commit

Permalink
Merge pull request #1035 from newrelic/clark/i18n-links
Browse files Browse the repository at this point in the history
fix: removing extra slug portion of redirect urls
  • Loading branch information
clarkmcadoo authored Mar 28, 2024
2 parents e1edb93 + f098cae commit b0eca0d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/gatsby-theme-newrelic/src/components/Link.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ const isRelativePath = (to) => !to.startsWith('http') && to.startsWith('/');

// Prevents our rewrites to our i18n Netlify sites showing external link icons
const i18nNetlifySites = [
'docs-website-kr.netlify.app/kr/',
'docs-website-jp.netlify.app/jp/',
'docs-website-es.netlify.app/es/',
'docs-website-pt.netlify.app/pt/',
'docs-website-kr.netlify.app/',
'docs-website-jp.netlify.app/',
'docs-website-es.netlify.app/',
'docs-website-pt.netlify.app/',
];
const isI18nNetlifySite = (to) =>
i18nNetlifySites.some((site) => to.includes(site));
Expand Down

0 comments on commit b0eca0d

Please sign in to comment.