Ensure "Manage account" button in user menu opens a new tab (#34552)

* Fix manage account link

* update snap

* lint

---------

Co-authored-by: David Baker <dbkr@users.noreply.github.com>
This commit is contained in:
Will Hunt
2026-08-18 10:20:51 +00:00
committed by GitHub
parent 28c1033e8a
commit e89ef1d1d6
2 changed files with 13 additions and 1 deletions
@@ -193,7 +193,15 @@ export function UserMenuView({ vm, className }: UserMenuViewProps): JSX.Element
{userId}
</Text>
{manageAccountHref && (
<Button as="a" size="md" kind="tertiary" href={manageAccountHref} Icon={PopOutIcon}>
<Button
as="a"
target="_blank"
rel="noreferrer noopener"
size="md"
kind="tertiary"
href={manageAccountHref}
Icon={PopOutIcon}
>
{_t("menus|user_menu|manage_account")}
</Button>
)}
@@ -460,8 +460,10 @@ exports[`UserMenu > renders a menu without an avatar 1`] = `
data-kind="tertiary"
data-size="md"
href="#"
rel="noreferrer noopener"
role="link"
tabindex="0"
target="_blank"
>
<svg
aria-hidden="true"
@@ -948,8 +950,10 @@ exports[`UserMenu > renders an open menu 1`] = `
data-kind="tertiary"
data-size="md"
href="#"
rel="noreferrer noopener"
role="link"
tabindex="0"
target="_blank"
>
<svg
aria-hidden="true"