jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/389994 )
Change subject: Make compatible with SemanticMediaWiki
......................................................................
Make compatible with SemanticMediaWiki
Bug: T78018
Change-Id: I74b828d294d850c80b9506bb169e4031577fc97d
---
M ShortUrl.hooks.php
1 file changed, 3 insertions(+), 3 deletions(-)
Approvals:
Legoktm: Looks good to me, approved
jenkins-bot: Verified
diff --git a/ShortUrl.hooks.php b/ShortUrl.hooks.php
index 3374d55..fb59d6f 100644
--- a/ShortUrl.hooks.php
+++ b/ShortUrl.hooks.php
@@ -19,9 +19,9 @@
public static function setupUrlRouting( $router ) {
global $wgShortUrlTemplate;
if ( $wgShortUrlTemplate ) {
- $router->add( $wgShortUrlTemplate,
- [ 'title' => SpecialPage::getTitleFor(
'ShortUrl', '$1' )->getPrefixedText() ]
- );
+ // Hardcode full title to avoid T78018. It shouldn't
matter because the
+ // page redirects immediately.
+ $router->add( $wgShortUrlTemplate, [ 'title' =>
'Special:ShortUrl/$1' ] );
}
return true;
}
--
To view, visit https://gerrit.wikimedia.org/r/389994
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I74b828d294d850c80b9506bb169e4031577fc97d
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/ShortUrl
Gerrit-Branch: master
Gerrit-Owner: Nikerabbit <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: Reedy <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits