Skip to content

Commit

Permalink
fix: uses link from theme rather than gatsby
Browse files Browse the repository at this point in the history
  • Loading branch information
caylahamann committed Mar 2, 2021
1 parent ad61ac4 commit e989335
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ import PropTypes from 'prop-types';
import Button from './Button';
import Logo from './Logo';
import ExternalLink from './ExternalLink';
import { graphql, useStaticQuery, Link } from 'gatsby';
import { graphql, useStaticQuery } from 'gatsby';
import { css } from '@emotion/core';
import CreateIssueButton from './CreateIssueButton';
import EditPageButton from './EditPageButton';
import useThemeTranslation from '../hooks/useThemeTranslation';
import Trans from './Trans';
import Link from './Link';

// We need to use this as a JS value otherwise the HTML entity gets saved in the
// string and escaped by React, therefore rendering the literal © text in
Expand Down
4 changes: 0 additions & 4 deletions packages/gatsby-theme-newrelic/src/utils/localization.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ export const localizePath = ({ path, locale }) => {
return path;
}

if (path === '/') {
return `/${locale.locale}/`;
}

const [, base] = path.split('/');

return base === locale.localizedPath
Expand Down

0 comments on commit e989335

Please sign in to comment.