Bare hyperlinks with comma in querystring

we are currently on 2.5.0.beta2 (29ccdf5d35)

A link which does include a comma inside the link is shown as a broken link and does of course not link to the correct webpage anymore.

https://wiki.bewegung.jetzt//index.php?title=Geschlechtergerechtigkeit,Vielfalt%26_Integration

In that case the only solution is to put the link into a hyperlink shortcut.

link

2 Likes

Try adding < and > around the link

https://wiki.bewegung.jetzt/index.php?title=Geschlechtergerechtigkeit,_Vielfalt_%26_Integration

Alternately, URL encode the comma.

3 Likes

well I normally work with the hyperlink shortcuts but our forum users just only dump the addresses they do have in their web browsers into their texts.

Modern software and browsers do often no longer URL encode a comma (the & is still URL encoded and the blanks replaced by underscores) since the browsers can work with the comma and the users would not know how to URL encode something manually.
So working with < > or to URL encode the comma is not really a solution there.
But since there are probably very rare cases with such a comma inside an URL I think there is no urgent need to fix this inside Discourse at the moment. I just wanted to bring it up to your attention that this kind of problem can occur in Discourse.
And thanks for your good work, Discourse is a great software.

2 Likes