|mediawiki/core : master||RightsLogFormatter: Use DB key to generate foreign user link|
At a glance of the bug (without digging into the code), maybe this is because those underscores become spaces due to title normalisation, and the space then gets encoded as %20 ?
We should use the DB key to generate these, and then run the _ -> - conversion, assuming we can make the assumption that it's the correct conversion in MW core
Looks like the conversion is done for us:
hphpd> =WikiMap::foreignUserLink( "map_bmswiki", "Arifys", "Arifys@map_bmswiki" ); =WikiMap::foreignUserLink( "map_bmswiki", "Arifys", "Arifys@map_bmswiki" ); "<a class=\"external\" href=\"//map-bms.wikipedia.org/wiki/User:Arifys\">Arifys@map_bmswiki</a>"