Browse Source

chore(organizations): Open terms in a new tab (#84672)

opens privacy policy and terms in a new tab on new organization creation
page
Richard Roggenkemper 1 month ago
parent
commit
14a7015c04
1 changed files with 3 additions and 2 deletions
  1. 3 2
      static/app/views/organizationCreate/index.tsx

+ 3 - 2
static/app/views/organizationCreate/index.tsx

@@ -8,6 +8,7 @@ import TextField from 'sentry/components/forms/fields/textField';
 import Form from 'sentry/components/forms/form';
 import type {OnSubmitCallback} from 'sentry/components/forms/types';
 import HookOrDefault from 'sentry/components/hookOrDefault';
+import ExternalLink from 'sentry/components/links/externalLink';
 import NarrowLayout from 'sentry/components/narrowLayout';
 import SentryDocumentTitle from 'sentry/components/sentryDocumentTitle';
 import {t, tct} from 'sentry/locale';
@@ -137,8 +138,8 @@ function OrganizationCreate() {
                 label={tct(
                   'I agree to the [termsLink:Terms of Service] and the [privacyLink:Privacy Policy]',
                   {
-                    termsLink: <a href={termsUrl} />,
-                    privacyLink: <a href={privacyUrl} />,
+                    termsLink: <ExternalLink href={termsUrl} />,
+                    privacyLink: <ExternalLink href={privacyUrl} />,
                   }
                 )}
                 inline={false}