copy-as-markdown-quot icon indicating copy to clipboard operation
copy-as-markdown-quot copied to clipboard

Invalid URL in Gmail

Open roelvanduijnhoven opened this issue 5 years ago • 0 comments

Whenever I use this extension from within Gmail I end up with a url of this shape:

https://mail.google.com/mail/u/0/#m_-6866875284062889053DP_TOP_MARK DP_USER_EMAIL

Which is quite strange as it contains a newline. This is due to the ID having a newline in it.

Either way: the problem is that Gmail uses the fragment to route to the correct page. If we use another fragment, navigation fails.

I would like to propose to only run the code to extract a fragment, if no fragment is found on the current URL already. Do you agree @eungjun-yi?

roelvanduijnhoven avatar Jun 26 '19 10:06 roelvanduijnhoven