Skip to content

Fix support mailto link opening a blank tab#4592

Open
m4cd4r4 wants to merge 1 commit into
OpenFn:mainfrom
m4cd4r4:fix/support-mailto-blank-tab
Open

Fix support mailto link opening a blank tab#4592
m4cd4r4 wants to merge 1 commit into
OpenFn:mainfrom
m4cd4r4:fix/support-mailto-blank-tab

Conversation

@m4cd4r4

@m4cd4r4 m4cd4r4 commented Apr 1, 2026

Copy link
Copy Markdown
Contributor

Summary

Closes #2435.

The Support menu item uses href="mailto:..." but the menu_item component defaults target to "_blank". This causes the browser to open a new tab when clicked - and when no mail client is configured, that tab stays blank with no feedback to the user.

Changes (single file - live.html.heex):

  • Pass target="_self" to the Support menu item, preventing a blank tab from opening
  • Add title={instance_admin_email()} to the label span so hovering shows the email address - users without a mail client can read/copy it

The target="_self" behaviour is intentional here: Documentation and Community links correctly keep _blank (external URLs should open in new tabs), but mailto: links should not.

AI disclosure

  • I used Claude Code to assist with this contribution

Test plan

  • Click Support in the sidebar nav - no blank tab opens
  • If a mail client is configured, it launches as expected
  • Hovering over "Support" shows the admin email address in a tooltip

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 OpenFn#2435
@github-project-automation github-project-automation Bot moved this to New Issues in Core Apr 1, 2026
@m4cd4r4

m4cd4r4 commented Jul 7, 2026

Copy link
Copy Markdown
Contributor Author

Just following up on this one - it's been open since April with no review yet. The fix is small (mailto link opening a blank tab instead of the mail client), so happy to make any changes needed if someone can take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: New Issues

Development

Successfully merging this pull request may close these issues.

Support "mailto" doesn't work for all users

1 participant