How to open gmail links in gmail app or browser? I often use links to some of my gmail messages; these links have the form:

https://mail.google.com/mail/u/0/#inbox/XXXXXXXXXX


and I use them for future reference in, for instance, evernote notes.

When I open such a link in chrome on my desktop, the corresponding mail message is opened as expected. However, if I open those links in chrome for android I only get the main window of gmail, not that specific message.

Does anybody know of a way to open permanent links to gmail messages in an android app?
As of 05 Oct 18, and as far as I am aware, there is no way to do so. The Desktop web interface, mobile interface, and Mobile Application use different unique IDs and links for the messages. 

For instance, using the desktop interface, you get the main/u/#/ links. On mobile web, you get mail/mu/mp/###/ links. There is no way to correspond the two. 

Further more, the UUIDs are different for the interfaces. On mobile, you get a ~16 alpha-numeric ID. On desktop it is ~35 alpha-numeric.

Maybe there is a method that the mobile web interface uses to shorten the length of the desktop IDs, but I can only speculate as to what it is.

But none of that would matter, because you would have to feed the link into a program or script to convert the link to/from what ever.

This does not even cover the use of multiple accounts, which have there own number in the links for desktop and mobile web interface.

That being said

There is a sort of workaround that you might could try. It requires a bit more work than copy-paste of a link, and it does not get you the desired outcome, but it is close.

Taken from a Web Applications Answer, you can modify your link to be a search result instead.

Follow his workaround steps. Getting the original message ID.

Your mobile link should look something like this:

https://mail.google.com/mail/mu/mp/###/#tl/search/rfcmsgid%3A&lt;MESSAGE.ID&gt;


And the desktop link:

https://mail.google.com/mail/u/#/#search/rfc822msgid%3A&lt;MESSAGE.ID&gt;


It adds to the number of items you will have listed in your notes, but it should get the job 85% done.