diff --git a/gatsby-node.esm.js b/gatsby-node.esm.js index d4894d7d..938d9112 100644 --- a/gatsby-node.esm.js +++ b/gatsby-node.esm.js @@ -16,9 +16,8 @@ exports.createPages = async ({ actions, graphql }) => { createRedirect({ fromPath: '/privacy', - toPath: '/privacy-policy', + toPath: '/privacypolicy', isPermanent: true, - redirectInBrowser: true, }) // Create landing page variants for referrers. diff --git a/src/components/__tests__/__snapshots__/Footer.test.js.snap b/src/components/__tests__/__snapshots__/Footer.test.js.snap index d3eff2b6..a3fd9957 100644 --- a/src/components/__tests__/__snapshots__/Footer.test.js.snap +++ b/src/components/__tests__/__snapshots__/Footer.test.js.snap @@ -148,7 +148,7 @@ exports[`Footer matches expected snapshot 1`] = ` "margin": 20, } } - to="/privacy-policy/" + to="/privacypolicy/" > Privacy diff --git a/src/pages/__tests__/privacy.test.js b/src/pages/__tests__/privacy.test.js index 345bb098..ef59714e 100644 --- a/src/pages/__tests__/privacy.test.js +++ b/src/pages/__tests__/privacy.test.js @@ -13,26 +13,26 @@ const getMockProps = () => ({ describe('privacy policy page', () => { it('renders without error', () => { - const PrivacyPage = require('../privacy-policy').default + const PrivacyPage = require('../privacypolicy').default shallow() }) it('sets the page title using Helmet', () => { - const PrivacyPage = require('../privacy-policy').default + const PrivacyPage = require('../privacypolicy').default const wrapper = shallow() const elem = wrapper.find(Helmet) expect(elem.prop('title')).toBe('Privacy Policy') }) it('sets the open graph title', () => { - const PrivacyPage = require('../privacy-policy').default + const PrivacyPage = require('../privacypolicy').default const wrapper = shallow() const elem = wrapper.find('meta[property="og:title"]') expect(elem.prop('content')).toBe('Privacy Policy - Tab for a Cause') }) it('sets the open graph description', () => { - const PrivacyPage = require('../privacy-policy').default + const PrivacyPage = require('../privacypolicy').default const wrapper = shallow() const elem = wrapper.find('meta[property="og:description"]') expect(elem.prop('content')).toBe( @@ -41,7 +41,7 @@ describe('privacy policy page', () => { }) it('renders the Layout component with "brand=all"', () => { - const PrivacyPage = require('../privacy-policy').default + const PrivacyPage = require('../privacypolicy').default const wrapper = shallow() expect(wrapper.find(Layout).prop('brand')).toEqual('all') }) diff --git a/src/pages/privacy-policy.js b/src/pages/privacypolicy.js similarity index 100% rename from src/pages/privacy-policy.js rename to src/pages/privacypolicy.js diff --git a/src/utils/navigation.js b/src/utils/navigation.js index 08b0fa0e..607dfc8e 100644 --- a/src/utils/navigation.js +++ b/src/utils/navigation.js @@ -8,7 +8,7 @@ export const helpURL = '/help/' export const contactUsURL = '/contact/' export const financialsURL = '/financials/' export const termsURL = '/terms/' -export const privacyPolicyURL = '/privacy-policy/' +export const privacyPolicyURL = '/privacypolicy/' export const teamURL = '/team/' export const jobsURL = '/jobs/' export const adblockerWhitelistingURL = '/adblockers/'