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.
master
Joey Hess 2008-02-24 16:37:11 -05:00
parent 2a802c1518
commit bd55d276b3
3 changed files with 5 additions and 4 deletions

View File

@ -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();
}

1
debian/changelog vendored
View File

@ -46,6 +46,7 @@ ikiwiki (2.40) UNRELEASED; urgency=low
always available. So it was just removed.
* Disable taint checking for all builds as people keep complaining about it,
and since all versions of perl seem to be hopelessly broken.
* Fix links generated by preprocessor directives when previewing.
-- Josh Triplett <josh@freedesktop.org> Sun, 10 Feb 2008 13:18:58 -0800

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2008-02-24 15:37-0500\n"
"POT-Creation-Date: 2008-02-24 16:02-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"