- changed status to on hold
Single quote in URL becomes #
Issue #92
duplicate
Note the special character in the URL. It should link to https://it.wikipedia.org/wiki/Pala_d%27oro_%28disambigua%29 but links to https://it.wikipedia.org/wiki/Pala_d#oro_.28disambigua.29.
<a href="//it.wikipedia.org/wiki/Pala d%23oro (disambigua)" target="_blank">
Pala d'oro (disambigua)
</a>
Seen in the disambig game.
Comments (5)
-
-
reporter You know there is an existing function
encodeURIComponent
in JavaScript you can use? No need to create your own regular expressions. -
Yeah, I suppose the implementation could be improved. @lokal-profil what do you think?
-
reporter - changed status to duplicate
Duplicate of
#26. -
encodeURIComponent could probably be used but apart from
'
which closes the href parameter I don't think any other characters (that are allowed as article names) should be a problem on modern browsers. If we see issues with weird URL:s though we should probably consider changing. - Log in to comment
This should have been fixed by c818e44 (merged 3h ago). Did you by any chance experience this problem before that? Or maybe your browser cache didn't load the latest version of the game -- try clearing your cache and reloading the game and see if it occurs again. I'm putting this on hold until it can be confirmed that the bug still exists.