Skip to content

Commit

Permalink
refactor: ensure global setting links open in a new tab (#7400)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaHungDinh authored Jun 24, 2024
1 parent 8c221bd commit 995130a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,12 @@ export default function Edit({
}}
>
{__(' Go to the settings to change the ')}
<a href="/wp-admin/edit.php?post_type=give_forms&page=give-settings&tab=display&section=display-settings">
{__('global Title Prefixes options.')}
<a
href="/wp-admin/edit.php?post_type=give_forms&page=give-settings&tab=display&section=display-settings"
target="_blank"
rel="noopener noreferrer"
>
{__('Global Title Prefixes options.')}
</a>
</p>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ export default function GlobalSettingsLink({href}: GlobalSettingsLinkProps) {
}}
>
{__(' Go to the settings to change the ')}
<a href={href}>{__('global Label and Text options.')}</a>
<a href={href} target="_blank" rel="noopener noreferrer">
{__('Global Label and Text options.')}
</a>
</p>
);
}

0 comments on commit 995130a

Please sign in to comment.