summaryrefslogtreecommitdiff
path: root/inc/parser/xhtml.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/parser/xhtml.php')
-rw-r--r--inc/parser/xhtml.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php
index 80701cd2e..fbdd8ada6 100644
--- a/inc/parser/xhtml.php
+++ b/inc/parser/xhtml.php
@@ -699,6 +699,11 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
//get interwiki URL
$url = $this->_resolveInterWiki($wikiName,$wikiUri);
+ if(strpos($url,'/') === false) {
+ list($url, $urlparam) = explode('?', $url, 2);
+ $url = wl($url, $urlparam);
+ }
+
if ( !$isImage ) {
$class = preg_replace('/[^_\-a-z0-9]+/i','_',$wikiName);
$link['class'] = "interwiki iw_$class";