Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Me Privacy: Open privacy links in the current tab #95006

Merged
merged 1 commit into from
Oct 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions client/me/privacy/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { Component } from 'react';
import { connect } from 'react-redux';
import DocumentHead from 'calypso/components/data/document-head';
import QueryUserSettings from 'calypso/components/data/query-user-settings';
import ExternalLink from 'calypso/components/external-link';
import FormButton from 'calypso/components/forms/form-button';
import FormFieldset from 'calypso/components/forms/form-fieldset';
import Main from 'calypso/components/main';
Expand Down Expand Up @@ -57,12 +56,8 @@ class Privacy extends Component {

const isSubmitButtonDisabled = ! hasUnsavedUserSettings || isUpdatingUserSettings;

const cookiePolicyLink = (
<ExternalLink href={ localizeUrl( 'https://automattic.com/cookies/' ) } target="_blank" />
);
const privacyPolicyLink = (
<ExternalLink href={ localizeUrl( 'https://automattic.com/privacy/' ) } target="_blank" />
);
const cookiePolicyLink = <a href={ localizeUrl( 'https://automattic.com/cookies/' ) } />;
const privacyPolicyLink = <a href={ localizeUrl( 'https://automattic.com/privacy/' ) } />;

return (
<Main wideLayout className="privacy">
Expand Down
Loading