X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/7f5c2cfa5a987d887f42d6db95f80f42ceb3b5ff..d712389ae3e8351c1416aa81d4b85586cf98f002:/IkiWiki/CGI.pm diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm index cb83319e6..b6f47a3a7 100644 --- a/IkiWiki/CGI.pm +++ b/IkiWiki/CGI.pm @@ -58,7 +58,10 @@ sub cgitemplate ($$$;@) { my $template=template("page.tmpl"); - my $topurl = defined $cgi ? $cgi->url : $config{url}; + my $topurl = $config{url}; + if (defined $cgi && ! $config{w3mmode}) { + $topurl = $cgi->url; + } my $page=""; if (exists $params{page}) {