Skip to content

Commit

Permalink
feat: SEG-76: Add link to Security page in footer (#199)
Browse files Browse the repository at this point in the history
The page has been around for a while but we haven't actually been
linking to it.
  • Loading branch information
timmc-edx authored Sep 2, 2022
1 parent f2c0866 commit a793037
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,10 @@ class Footer extends React.Component {
href: 'https://support.edx.org',
title: intl.formatMessage(messages['footer.connectLinks.help']),
},
{
href: `${MARKETING_BASE_URL}${localePrefix}/policy/security`,
title: intl.formatMessage(messages['footer.connectLinks.security']),
},
{
href: `${MARKETING_BASE_URL}${localePrefix}/media-kit`,
title: intl.formatMessage(messages['footer.connectLinks.mediaKit']),
Expand Down
5 changes: 5 additions & 0 deletions src/components/Footer.messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@ const messages = defineMessages({
defaultMessage: 'Help Center',
description: 'The label for the link to the edX help center.',
},
'footer.connectLinks.security': {
id: 'footer.connectLinks.security',
defaultMessage: 'Security',
description: 'The label for the link to the security disclosures page.',
},
'footer.connectLinks.mediaKit': {
id: 'footer.connectLinks.mediaKit',
defaultMessage: 'Media Kit',
Expand Down
21 changes: 21 additions & 0 deletions src/components/__snapshots__/Footer.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,13 @@ exports[`<Footer /> renders correctly renders with a language selector 1`] = `
Help Center
</a>
</li>
<li>
<a
href="https://edx.org/policy/security"
>
Security
</a>
</li>
<li>
<a
href="https://edx.org/media-kit"
Expand Down Expand Up @@ -601,6 +608,13 @@ exports[`<Footer /> renders correctly renders without a language selector 1`] =
Help Center
</a>
</li>
<li>
<a
href="https://edx.org/policy/security"
>
Security
</a>
</li>
<li>
<a
href="https://edx.org/media-kit"
Expand Down Expand Up @@ -952,6 +966,13 @@ exports[`<Footer /> renders correctly renders without a language selector in es
Help Center
</a>
</li>
<li>
<a
href="https://edx.org/es/policy/security"
>
Security
</a>
</li>
</ul>
</div>
<div
Expand Down

0 comments on commit a793037

Please sign in to comment.