Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mastodon removes final dot at the end of my link #6701

Closed
MyNameIsTroll opened this issue Mar 8, 2018 · 4 comments
Closed

Mastodon removes final dot at the end of my link #6701

MyNameIsTroll opened this issue Mar 8, 2018 · 4 comments
Labels
bug Something isn't working

Comments

@MyNameIsTroll
Copy link

MyNameIsTroll commented Mar 8, 2018

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

@Zanonia
Copy link
Contributor

Zanonia commented Mar 8, 2018

You can use url tag on github "[text](your url with dot)" :
https://fr.wikipedia.org/wiki/Minist%C3%A8re_A.M.E.R.

@nightpool
Copy link
Member

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

@unarist
Copy link
Contributor

unarist commented Mar 10, 2018

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.

@MyNameIsTroll
Copy link
Author

@unarist Thank you for these tips and explanations:)

@Gargron Gargron added the bug Something isn't working label Oct 20, 2018
@vmstan vmstan closed this as not planned Won't fix, can't repro, duplicate, stale Jan 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants