From 6a2dfff16c979d836183dbf38c12dbca3bdfb9c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Macdara=20=C3=93=20Murch=C3=BA?= Date: Wed, 1 Apr 2026 10:22:45 +0800 Subject: [PATCH] Fix support mailto link opening a blank tab Pass target="_self" to the Support menu item so clicking the mailto link does not open a new browser tab. Also adds the admin email as a title attribute on the label span, giving users without a mail client configured a way to see and copy the address on hover. Closes #2435 --- CHANGELOG.md | 3 +++ lib/lightning_web/components/layouts/live.html.heex | 12 ++++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fcd6c8109a..863f21ca02 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -48,6 +48,9 @@ and this project adheres to [PR#4551](https://github.com/OpenFn/lightning/pull/4551) - Fix AI assistant authorization for support users on projects with support access enabled [#4571](https://github.com/OpenFn/lightning/issues/4571) +- Support mailto link no longer opens a blank tab; email address is shown as + a tooltip for users without a mail client configured + [#2435](https://github.com/OpenFn/lightning/issues/2435) ## [2.16.0] - 2026-03-24 diff --git a/lib/lightning_web/components/layouts/live.html.heex b/lib/lightning_web/components/layouts/live.html.heex index b8953b59a3..575ad99700 100644 --- a/lib/lightning_web/components/layouts/live.html.heex +++ b/lib/lightning_web/components/layouts/live.html.heex @@ -66,9 +66,17 @@ <.icon name="hero-user-group-mini" class="h-5 w-5 shrink-0" /> Community - Lightning.Config.instance_admin_email()}> + Lightning.Config.instance_admin_email()} + target="_self" + > <.icon name="hero-lifebuoy-mini" class="h-5 w-5 shrink-0" /> - Support + + Support + <% end %> <% end %>