[GH-ISSUE #317] 🚀 Open Links in EMails in a new window #274

Closed
opened 2026-02-25 21:34:37 +03:00 by kerem · 8 comments
Owner

Originally created by @ulfgebhardt on GitHub (Feb 9, 2019).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/317

🚀 Feature

It would be nice if there were an option to open every link in an email in a new window by default.

Currently the links are opened in the same tab as cypht - which is no real problem, but if you forget to press ctrl now and lose your open Email client.

If I missed such an option please show me how to activate it.

Since i mostly view text messages it should be quite easy to add a target="_blank" - for html emails it might be more complex?! - especially when not every link is one which points outside the email, but a jumpmarker #mymarker.

Design, Layout, Architecture

Originally created by @ulfgebhardt on GitHub (Feb 9, 2019). Original GitHub issue: https://github.com/cypht-org/cypht/issues/317 ## 🚀 Feature <!-- Describe the Feature. --> ### Open Links in EMails in a new window It would be nice if there were an option to open every link in an email in a new window by default. Currently the links are opened in the same tab as cypht - which is no real problem, but if you forget to press ctrl now and lose your open Email client. If I missed such an option please show me how to activate it. Since i mostly view text messages it should be quite easy to add a `target="_blank"` - for html emails it might be more complex?! - especially when not every link is one which points outside the email, but a jumpmarker `#mymarker`. ### Design, Layout, Architecture <!-- Attach Screenshots and Drawings. --> <!-- Specify more details of the Feature with each Picture. -->
kerem closed this issue 2026-02-25 21:34:37 +03:00
Author
Owner

@jasonmunro commented on GitHub (Feb 10, 2019):

We actually used to do this for both text and html E-mail links, however I disabled it because of this:

https://www.owasp.org/index.php/Reverse_Tabnabbing

I know we can use noopener but I was concerned about browser support so I removed all target attributes.

<!-- gh-comment-id:462091282 --> @jasonmunro commented on GitHub (Feb 10, 2019): We actually used to do this for both text and html E-mail links, however I disabled it because of this: https://www.owasp.org/index.php/Reverse_Tabnabbing I know we can use noopener but I was concerned about browser support so I removed all target attributes.
Author
Owner

@ulfgebhardt commented on GitHub (Feb 10, 2019):

ok I get that - your choice to close this issue - i will live with the ctrl+click ;-)

<!-- gh-comment-id:462091914 --> @ulfgebhardt commented on GitHub (Feb 10, 2019): ok I get that - your choice to close this issue - i will live with the ctrl+click ;-)
Author
Owner

@jasonmunro commented on GitHub (Feb 10, 2019):

I feel we really should err on the side of caution here so I'm closing :)

<!-- gh-comment-id:462099244 --> @jasonmunro commented on GitHub (Feb 10, 2019): I feel we really should err on the side of caution here so I'm closing :)
Author
Owner

@StevenMassaro commented on GitHub (Dec 20, 2023):

@jasonmunro Would you consider reopening this? According to your link:

Update 2023 - this is fixed in modern, evergreen, browsers

<!-- gh-comment-id:1865010698 --> @StevenMassaro commented on GitHub (Dec 20, 2023): @jasonmunro Would you consider reopening this? According to [your link](https://www.owasp.org/index.php/Reverse_Tabnabbing): > Update 2023 - this is fixed in modern, evergreen, browsers
Author
Owner

@marclaporte commented on GitHub (Dec 20, 2023):

@Yannick243 Please investigate and advise.

<!-- gh-comment-id:1865243163 --> @marclaporte commented on GitHub (Dec 20, 2023): @Yannick243 Please investigate and advise.
Author
Owner

@Yannick243 commented on GitHub (Jan 3, 2024):

After researching the potential Reverse_Tabnabbing vulnerability that could result from that, I noticed that support for rel='noopener' is now implicitly enabled in the majority of modern browsers (since at least 2020) for links using target='_blank' as indicated here https://caniuse.com/mdn-html_elements_a_implicit_noopener except InternetExplorer.
Consequently, this vulnerability is no longer as critical as before. I would suggest reintroducing target='_blank' rel='noopener' for external links. If this approach is acceptable, I can submit a pull request.

<!-- gh-comment-id:1875852831 --> @Yannick243 commented on GitHub (Jan 3, 2024): After researching the potential Reverse_Tabnabbing vulnerability that could result from that, I noticed that support for `rel='noopener'` is now implicitly enabled in the majority of modern browsers (since at least 2020) for links using `target='_blank'` as indicated here [https://caniuse.com/mdn-html_elements_a_implicit_noopener](https://caniuse.com/mdn-html_elements_a_implicit_noopener) except InternetExplorer. Consequently, this vulnerability is no longer as critical as before. I would suggest reintroducing `target='_blank' rel='noopener'` for external links. If this approach is acceptable, I can submit a pull request.
Author
Owner

@marclaporte commented on GitHub (Jan 3, 2024):

@josaphatim @kroky @jasonmunro

<!-- gh-comment-id:1875912491 --> @marclaporte commented on GitHub (Jan 3, 2024): @josaphatim @kroky @jasonmunro
Author
Owner

@kroky commented on GitHub (Jan 4, 2024):

I agree, target blank in conjunction with rel=noopener have pretty good support for quite some years in most browsers and it feels more natural to open email links in new tabs/windows.

<!-- gh-comment-id:1876759553 --> @kroky commented on GitHub (Jan 4, 2024): I agree, target blank in conjunction with rel=noopener have pretty good support for quite some years in most browsers and it feels more natural to open email links in new tabs/windows.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cypht#274
No description provided.