Jakob_WMDE added a comment.
Hello @Lydia_Pintscher! It looks like we want to use a standard url encoding but exclude slashes <https://phabricator.wikimedia.org/T128078>. When the slashes task was tackled the url encoding was switched to use a mediawiki function `wfUrlencode` to prettify internal (!) title urls which unencoded slashes and some other characters (`;:@$!*(),~`) as well. I'm now curious whether we care about these other characters, or if it's only the slashes that we want unencoded. I see the following two options: 1. Keep everything as it is and simply replace "+" with "%20". 2. Use the built-in PHP url encoding function <https://www.php.net/manual/en/function.rawurlencode.php> that converts spaces as "%20" and replace slashes. The latter would be preferable if we don't care about the other characters, I think. TASK DETAIL https://phabricator.wikimedia.org/T271126 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Jakob_WMDE Cc: Ghouston, Lucas_Werkmeister_WMDE, Addshore, Aklapper, Lydia_Pintscher, Mohammed_Sadat_WMDE, Akuckartz, Iflorez, alaa_wmde, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, Jonas, Wikidata-bugs, aude, Mbch331
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
