aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/CGI.pm
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2014-10-05 15:19:55 +0100
committerSimon McVittie <smcv@debian.org>2014-10-05 15:19:55 +0100
commitb0a35c817e453a8d19fb3d52a093e3aee68c66aa (patch)
tree4f1fb2243f08ff503575d5601399599b9517fdd2 /IkiWiki/CGI.pm
parent210bf742b92bde3baf1ca6d7af9f847d052a0691 (diff)
downloadikiwiki-b0a35c817e453a8d19fb3d52a093e3aee68c66aa.tar
ikiwiki-b0a35c817e453a8d19fb3d52a093e3aee68c66aa.tar.gz
Force use of $config{url} as top URL in w3mmode
Diffstat (limited to 'IkiWiki/CGI.pm')
-rw-r--r--IkiWiki/CGI.pm5
1 files changed, 4 insertions, 1 deletions
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}) {