Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0c55888

Browse files
authored
Clean up translation-specific legal links (#34703)
1 parent ea50055 commit 0c55888

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

components/page-footer/SmallFooter.tsx

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const SmallFooter = () => {
1313
{/* In Germany, Austria, and Switzerland, the Impressum link is legally required. */}
1414
{router.locale === 'de' && (
1515
<li className="mr-3 mr-xl-0">
16-
<a href="https://aka.ms/impressum_de" target="_blank">
16+
<a href="https://aka.ms/impressum_de" target="_blank" rel="noopener">
1717
Impressum
1818
</a>
1919
<LinkExternalIcon size={12} />
@@ -26,19 +26,13 @@ export const SmallFooter = () => {
2626
</li>
2727
<li className="mr-3 mr-xl-0">
2828
{/* KO law requires link to privacy statement to be conspicuous */}
29-
{router.locale === 'ko' ? (
30-
<Link
31-
href={`/${router.locale}/site-policy/privacy-policies/github-privacy-statement`}
32-
legacyBehavior={false}
33-
className="color-fg-attention text-bold"
34-
>
35-
{t('privacy')}
36-
</Link>
37-
) : (
38-
<Link href={`/${router.locale}/site-policy/privacy-policies/github-privacy-statement`}>
39-
{t('privacy')}
40-
</Link>
41-
)}
29+
<Link
30+
href={`/${router.locale}/site-policy/privacy-policies/github-privacy-statement`}
31+
legacyBehavior={false}
32+
className={router.locale === 'ko' ? 'color-fg-attention text-bold' : undefined}
33+
>
34+
{t('privacy')}
35+
</Link>
4236
</li>
4337
<li className="mr-3 mr-xl-0">
4438
<a href="https://github.com/security">{t('product.links.security')}</a>

0 commit comments

Comments
 (0)