From 8be2b60aaca495b84c299cf69ee8958603bd7204 Mon Sep 17 00:00:00 2001
From: Joey Hess <joey@kodama.kitenet.net>
Date: Thu, 14 Feb 2008 15:20:49 -0500
Subject: * The search plugin needs to override <base> to point to the
 directory   containing ikiwiki.cgi, but this should not change the urls to
 the style   sheets etc. Add a new forcebareurl parameter to misctemplate to
 allow   it to do that.

---
 IkiWiki/Plugin/search.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'IkiWiki/Plugin')

diff --git a/IkiWiki/Plugin/search.pm b/IkiWiki/Plugin/search.pm
index da818e5cf..9bf223cf0 100644
--- a/IkiWiki/Plugin/search.pm
+++ b/IkiWiki/Plugin/search.pm
@@ -96,7 +96,7 @@ sub estcfg () { #{{{
 	open(TEMPLATE, ">:utf8", $newfile) || error("open $newfile: $!", $cleanup);
 	print TEMPLATE IkiWiki::misctemplate("search", 
 		"<!--ESTFORM-->\n\n<!--ESTRESULT-->\n\n<!--ESTINFO-->\n\n",
-		baseurl => IkiWiki::dirname($config{cgiurl})."/") ||
+		forcebaseurl => IkiWiki::dirname($config{cgiurl})."/") ||
 			error("write $newfile: $!", $cleanup);
 	close TEMPLATE || error("save $newfile: $!", $cleanup);
 	rename($newfile, "$estdir/$cgi.tmpl") ||
-- 
cgit v1.2.3