Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hyperlink is not clickable in gmail

I tried to put a HTML hyperlink like this

<a href="test-app://param=123">Click here</a>

in my HTML email template and sent it using java mail library. When I open that email in my gmail, it displays "Click here" but the link is not clickable. It's just <a>Click here</a> (the part "href="test-app://param=123" is removed). It works well when I replace the link in href by the links like www.google.com.

Please help

like image 473
Jee Bu Bu Avatar asked Jan 15 '16 10:01

Jee Bu Bu


People also ask

Why is my link not clickable on Gmail?

Tap the menu button at the upper left corner of the app. Select “Settings” from the side menu. Scroll to the bottom and turn off “Open web links in Gmail”. Restart Gmail and try opening the hyperlinks again.

Why is my hyperlink not clickable?

Most likely problems with opening hyperlinks are connected with either the security restrictions of your Internet browser that doesn't allow opening pop-up windows, or with your Flash player plug-in that prevents you from opening URLs in local Flash files.

Why cant I click on links in my emails?

The main reason of hyperlinks not working in Outlook is the default Internet browser not registered (properly) in your operating system. Typically, this issue comes up after uninstalling Google Chrome or changing the default browser from Internet Explorer to either Chrome or Firefox.


2 Answers

I had this issue and in my case I hadn't explicitly given the protocol so I just added http://to all my urls and it worked fine after that. In your example your url looks strange too though.

I would imagine you would have to have something like

<a href="http://test-app?param=123">Click here</a>
like image 135
Tyrone Wilson Avatar answered Oct 31 '22 21:10

Tyrone Wilson


You should define your own schema in the AppManifest.

Take a look here:

Hyperlinks with non HTTP schema in GMAIL

like image 42
Paolo M Avatar answered Oct 31 '22 20:10

Paolo M