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, [[[email protected] | mailto:[email protected]]] 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 "[email protected]">>

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 [email protected] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/tiddlywiki 
> <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
>  
> <https://groups.google.com/d/msgid/tiddlywiki/e26bfcde-51d2-4d31-a784-5df5cdb3cfd9%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/3C9A0600-FE4E-4320-B159-A7B8881CA7FD%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to