diff options
author | Simon McVittie <smcv@debian.org> | 2014-10-05 15:19:55 +0100 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2014-10-05 15:19:55 +0100 |
commit | b0a35c817e453a8d19fb3d52a093e3aee68c66aa (patch) | |
tree | 4f1fb2243f08ff503575d5601399599b9517fdd2 /IkiWiki | |
parent | 210bf742b92bde3baf1ca6d7af9f847d052a0691 (diff) | |
download | ikiwiki-b0a35c817e453a8d19fb3d52a093e3aee68c66aa.tar ikiwiki-b0a35c817e453a8d19fb3d52a093e3aee68c66aa.tar.gz |
Force use of $config{url} as top URL in w3mmode
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/CGI.pm | 5 |
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}) { |