Mastodon: Mastodon removes final dot at the end of my link

Created on 8 Mar 2018  ·  4Comments  ·  Source: tootsuite/mastodon

When I paste a link with a (dot) at the end of the link, when I click on my link mastodon remove the (dot) and do not redirect me to the right page.

Example, I put this link: https://fr.wikipedia.org/wiki/Ministère_A.M.E.R.
mastodon shows me the full link in the toot but when I click on the link, mastodon sends me back to a fake page because it removes the final point of my link.

EDIT: It's the same on github >_<'.

screenshot-2018-3-8 ministere a m e r wikipedia

screenshot-2018-3-8 ministere a m e r wikipedia 1

bug

Most helpful comment

This rule was imported from Twitter, and it's intended to avoid capturing final dot on the end of sentences, like "You can see an example page on http://example.com/test."

Another workaround is appending # to the end of the URL:

https://fr.wikipedia.org/wiki/Ministère_A.M.E.R.#
https://fr.wikipedia.org/wiki/Ministère_A.M.E.R.#

and looks like wrapping with < and > also works on Github, but this won't work on Mastodon:

<https://fr.wikipedia.org/wiki/Ministère_A.M.E.R.>
https://fr.wikipedia.org/wiki/Ministère_A.M.E.R.

All 4 comments

You'll have to url-encode your link to get the right output:

https://fr.wikipedia.org/wiki/Minist%C3%A8re_A%2EM%2EE%2ER%2E

see:

https://fr.wikipedia.org/wiki/Minist%C3%A8re_A%2EM%2EE%2ER%2E

This rule was imported from Twitter, and it's intended to avoid capturing final dot on the end of sentences, like "You can see an example page on http://example.com/test."

Another workaround is appending # to the end of the URL:

https://fr.wikipedia.org/wiki/Ministère_A.M.E.R.#
https://fr.wikipedia.org/wiki/Ministère_A.M.E.R.#

and looks like wrapping with < and > also works on Github, but this won't work on Mastodon:

<https://fr.wikipedia.org/wiki/Ministère_A.M.E.R.>
https://fr.wikipedia.org/wiki/Ministère_A.M.E.R.

@unarist Thank you for these tips and explanations:)

Was this page helpful?
0 / 5 - 0 ratings