Skip to content

Commit

Permalink
Merge pull request #1033 from newrelic/develop
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
LizBaker authored Mar 25, 2024
2 parents cd08468 + e1edb93 commit a6b4a0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions packages/gatsby-theme-newrelic/src/components/Link.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ 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-pt.netlify.app/jp/',
'docs-website-jp.netlify.app/jp/',
'docs-website-es.netlify.app/es/',
'docs-website-pt.netlify.app/pt/',
];
Expand Down Expand Up @@ -94,7 +94,6 @@ const Link = forwardRef(
/>
);
}

if ((isExternal(to) || isEmbedPageLink) && !isI18nNetlifySite(to)) {
if (isRelativePath(to)) {
to = siteUrl + to;
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby-theme-newrelic/src/utils/config/i18n.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const DEFAULT_NAMESPACE = 'translation';
const SUPPORTED_LOCALES = ['en', 'jp', 'kr'];
const SUPPORTED_LOCALES = ['en', 'jp', 'kr', 'es', 'pt'];
const THEME_NAMESPACE = 'gatsby-theme-newrelic';

const LOCALE_CONFIGS = {
Expand Down

0 comments on commit a6b4a0a

Please sign in to comment.