From 841cc576db2bddf5c851520ab7592464ec0aa259 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 5 Jan 2011 13:19:26 -0400 Subject: [PATCH] doesn't only affect preview --- doc/bugs/preview_base_url_should_be_absolute.mdwn | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/doc/bugs/preview_base_url_should_be_absolute.mdwn b/doc/bugs/preview_base_url_should_be_absolute.mdwn index 86575eed9..5391d39d6 100644 --- a/doc/bugs/preview_base_url_should_be_absolute.mdwn +++ b/doc/bugs/preview_base_url_should_be_absolute.mdwn @@ -24,3 +24,16 @@ git|http://git.oblomov.eu/ikiwiki]]. >> `CGI::url` uses `REQUEST_URI`. So it could be used, but I don't see >> how to get from the `CGI::url` to an url to the page that is being >> edited. --[[Joey]] +>>> (The right rune seems to be: `URI->new_abs(urlto($params{page}), $cgi->url))` --[[Joey]] + +--- + +Update: This bug is worse than it first appeared, and does not only affect +previewing. The cgi always has a `` url, and it's always relative, +and that can break various links etc. For example, when the 404 plugin +displays a missing page, it has a Recentchanges link, which would be broken +if the cgi was in an unusual place. + +`misctemplate` needs to *always* set an absolute baseurl. Which is a problem, +since `misctemplate` is not currently passed a cgi object from which to +construct one. --[[Joey]] -- 2.32.0.93.g670b81a890