From a39cf220d9a7531de6f111512251970b8c87e471 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Tue, 4 Aug 2009 16:31:19 +0000 Subject: [PATCH] * Forward get parameters to local interwikis * Patch by str4nd --- includes/Wiki.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/Wiki.php b/includes/Wiki.php index d385f92311..a310151df2 100644 --- a/includes/Wiki.php +++ b/includes/Wiki.php @@ -188,7 +188,9 @@ class MediaWiki { if( $rdfrom = $request->getVal( 'rdfrom' ) ) { $url = $title->getFullURL( 'rdfrom=' . urlencode( $rdfrom ) ); } else { - $url = $title->getFullURL(); + $query = $request->getValues(); + unset( $query['title'] ); + $url = $title->getFullURL( $query ); } /* Check for a redirect loop */ if( !preg_match( '/^' . preg_quote( $this->getVal('Server'), '/' ) . '/', $url ) && $title->isLocal() ) { -- 2.20.1