diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-02-24 16:37:11 -0500 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-02-24 16:37:11 -0500 |
commit | bd55d276b3367e2c1792ea868d6e868cc26e2203 (patch) | |
tree | 29a7adb65aaa6d4be042de0008843d65fe1648a1 /IkiWiki | |
parent | 2a802c1518d2ef9b4340961c173b5b2d111c499a (diff) | |
download | ikiwiki-bd55d276b3367e2c1792ea868d6e868cc26e2203.tar ikiwiki-bd55d276b3367e2c1792ea868d6e868cc26e2203.tar.gz |
Fix links generated by preprocessor directives when previewing.
As was already done for linkfication, links generated in a prevew page
are relative to the top of the wiki, so it has to be told that the destpage
is there.
I was using "" to indicate this, but that may confuse some preprocessor
plugins, which treat parameters with an empry value specially (sparkline is one
such). Instead, use "/", which is more accurate anyway and works just as well.
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/CGI.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm index cfb2c0b1d..87cb9c3f3 100644 --- a/IkiWiki/CGI.pm +++ b/IkiWiki/CGI.pm @@ -354,9 +354,9 @@ sub cgi_editpage ($$) { #{{{ }); $form->tmpl_param("page_preview", htmlize($page, $type, - linkify($page, "", - preprocess($page, $page, - filter($page, $page, $content), 0, 1)))); + linkify($page, "/", + preprocess($page, "/", + filter($page, "/", $content), 0, 1)))); # previewing may have created files on disk saveindex(); } |