Affected both the linked text and the actual URL.
For an example please see the ukwiki link on:
https://www.mediawiki.org/wiki/Special:CentralAuth/Admin
Follow-Up: Ibdedf087f85046646450367cbf1811db578d8f4b
Change-Id: Ie73796dcde4e0a096a6baa86a53245e6fe2b48b5
if ( $wikiId !== null ) {
$thelink = Linker::makeExternalLink(
- WikiMap::getForeignURL( $wikiId, $target->getPrefixedURL() ),
+ WikiMap::getForeignURL( $wikiId, $target->getFullText() ),
$linkText . $inside,
- true
+ /* escape = */ false // Already escaped
) . $trail;
} else {
$thelink = Linker::link(
'foo bar [[Special:BlankPage]]',
null,
),
+ array(
+ '<a class="external" rel="nofollow" href="//en.example.org/w/Foo%27bar">Foo\'bar</a>',
+ "[[Foo'bar]]",
+ 'enwiki',
+ ),
array(
'foo bar <a class="external" rel="nofollow" href="//en.example.org/w/Special:BlankPage">Special:BlankPage</a>',
'foo bar [[Special:BlankPage]]',