Issue with mailto in Chrome

341 views
Skip to first unread message

Patrick Williams

unread,
Dec 22, 2017, 7:06:23 AM12/22/17
to TiddlyWiki
Hi everyone,

I've been learning, using, and enjoying TiddlyWiki for 2 years now and have lurked this group quite a bit. I'm running in to an odd issue with mailto links in Chrome.

When I click my mailto link, [[te...@test.com | mailto:te...@test.com]] an email window in Outlook opens as expected, however a new blank tab opens as well. This issue is only present in Google Chrome, which is my browser of choice. I'm not using any tab related extensions or anything of the sort.

Does anyone have any ideas as to what may be causing this?

Jeremy Ruston

unread,
Dec 22, 2017, 7:25:28 AM12/22/17
to tiddl...@googlegroups.com
Hi Patrick

I've been learning, using, and enjoying TiddlyWiki for 2 years now and have lurked this group quite a bit. I'm running in to an odd issue with mailto links in Chrome.

When I click my mailto link, [[te...@test.com | mailto:te...@test.com]] an email window in Outlook opens as expected, however a new blank tab opens as well. This issue is only present in Google Chrome, which is my browser of choice. I'm not using any tab related extensions or anything of the sort.

Does anyone have any ideas as to what may be causing this?

The problem is likely to be that by default TiddlyWiki marks up external links with target=“_blank”, to cause them to open in a new window. It appears that other browsers are smart enough to realise that a mailto: link isn’t going to open in a browser, and so avoid opening the new window.

One reason that Chrome might behave differently is its support for assigning mailto: links to web applications; in that situation, perhaps they need to support opening a mailto: link in a new tab.

In the meantime, I fear that the easiest fix would be to use a custom macro to render your mailto: links. For example:

\define email-link(address)
<a href="mailto:$address$">$address$</a>
\end

<<email-link "te...@example.com">>

In my tests, I’m still seeing an unnecessary seeming confirmation dialogue from Chrome.

Best wishes

Jeremy.



--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/e26bfcde-51d2-4d31-a784-5df5cdb3cfd9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Patrick Williams

unread,
Dec 22, 2017, 7:37:43 AM12/22/17
to TiddlyWiki
Jeremy,

That did it. Thanks a lot for the help, it looks like I'm going to have to dive into Macros.


On Friday, December 22, 2017 at 7:25:28 AM UTC-5, Jeremy Ruston wrote:
Hi Patrick

I've been learning, using, and enjoying TiddlyWiki for 2 years now and have lurked this group quite a bit. I'm running in to an odd issue with mailto links in Chrome.

When I click my mailto link, [[te...@test.com | mailt...@test.com]] an email window in Outlook opens as expected, however a new blank tab opens as well. This issue is only present in Google Chrome, which is my browser of choice. I'm not using any tab related extensions or anything of the sort.

Does anyone have any ideas as to what may be causing this?
Reply all
Reply to author
Forward
0 new messages