HTML <a> tag mailto generates wrong address

时间:2015-06-02 11:46:06

标签: html google-chrome anchor mailto xdgutils

I am using ubuntu 15.04 and chrome. When i click on any html link with mailto protocol e.g.

<a href="mailto:myemail@example.com">Click to send me email!</a>

It opens my default email application (thunderbird) but populate address field with wrong address. It prepends /// to email address. So in above case, recipient will looks like this

///myemail@example.com

instead of

myemail@example.com

Same issue is with skype urls. i.e.

<a href="skype:myusername?chat">Click to chat with me!</a>

It will open skype window with wrong user by prepending slash (/) same happen as with email address.

Any help in this regard will be appreciated.

2 个答案:

答案 0 :(得分:1)

ubuntu 15.04上存在gvfs包的问题,​​它负责使用默认程序打开文件或执行操作。

gvfs包打开mailto,地址错误。删除此包

sudo apt-get purge gvfs

而且,对于mailto和skype,它都可以正常工作。

答案 1 :(得分:0)

通过清除gvfs,许多程序开始行为不端。它还使文件浏览器和桌面文件无法访问。

这是ubuntu 15.04中的已知问题,希望在下一个稳定版本中得到解决。