htmlgmail

Hyperlinks within email body work in browser but not Gmail mobile app


I've got a program that generates email reports and sends to certain recipients. The email contains a table of contents with hyperlinks to bookmarks later in the email.

This works perfectly when viewing mails in the browser, e.g. on gmail.com. However, recently something seems to have changed in the Gmail mobile app, and my hyperlinks no longer work there.

When generating the email, the link is of the form:

<a href="section_1">Section 1</a>

and the bookmark is of the form:

<a name="section_1"/>    

In the browser, the link URL appears in the form:

https://mail.google.com/mail/u/0/#m_3653008429050877336_1

In the Gmail app, however, the link appears in the form:

x-thread://-90370221/435827759917983#m_3653008429050877336_1

Any ideas what has changed, and how to make my intra-document hyperlinks work again?


Solution

  • Orignal Answer

    This functionality is not available in gmail app. Here is the link to google forum where you can confirm:

    https://productforums.google.com/forum/#!topic/gmail/CdhA_3Z1yTo

    You can insert link in the gmail app (like http://www.google.com) in Gmail app which is automatically converted to clickable link when you send the message but if you want hyperlink (like "click here" and when you click on it you are directed to the link to the page) you will have to do it from your browser only. There is no option available in Gmail app to do that.

    The alternate solution is to use Microsoft Outlook. Add your google account in Outlook app.

    In the compose section long press in the area then you get option to add hyperlink.

    Answer after discussion in chat

    It seems that the problem is with the gmail app version. If you want to open links received in your gmail app so that you are redirected to the location of message in the same mail you need to have minimum version 8 of gmail app. Verified this as I was able to access the links in my gmail app as well as my browser.

    Platforms on which veried the links:

    Android 6.0.1 - Gmail Version: 8.1.7.182107449.release

    Windows 10 - Chrome: Version 63.0.3239.132

    Ubuntu 16.04 (xenial) - Firefox: Version 57.0.4