From: Joey Hess <joey@kodama.kitenet.net>
Date: Thu, 10 Apr 2008 23:54:38 +0000 (-0400)
Subject: response
X-Git-Tag: 2.43~23
X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/2718fc2b2513e47e14e7cf98be6df5608c5e72d8?ds=sidebyside

response
---

diff --git a/doc/bugs/relative_links.mdwn b/doc/bugs/relative_links.mdwn
index 1a59f2401..a1dc8f373 100644
--- a/doc/bugs/relative_links.mdwn
+++ b/doc/bugs/relative_links.mdwn
@@ -23,3 +23,5 @@ Errr... That is not a solution, that is a work around. ikiwiki does not hard cod
 
 I noticed the links to the images on <http://ikiwiki.info/recentchanges/> are also absolute, that is <http://ikiwiki.info/wikiicons/diff.png>; this seems surprising, as the change.tmpl file uses &lt;TMPL_VAR BASEURL&gt;
 which seems to do the right thing in page.tmpl, but not for change.tmpl. Where is BASEURL set? -- Brian May
+
+> The use of an absolute baseurl in change.tmpl is a special case. --[[Joey]]
diff --git a/templates/change.tmpl b/templates/change.tmpl
index 55aabe201..4a99cf5ff 100644
--- a/templates/change.tmpl
+++ b/templates/change.tmpl
@@ -7,7 +7,7 @@
 <span class="desc"><br />Changed pages:</span>
 <span class="pagelinks">
 <TMPL_LOOP NAME="PAGES">
-<TMPL_IF NAME="DIFFURL"><a href="<TMPL_VAR DIFFURL>"><img alt="diff" src="<TMPL_VAR BASEURL>wikiicons/diff.png" /></a><TMPL_VAR LINK>
+<TMPL_IF NAME="DIFFURL"><a href="<TMPL_VAR DIFFURL>">[[diff|wikiicons/diff.png]]</a><TMPL_VAR LINK>
 <TMPL_ELSE>
 <TMPL_VAR LINK>
 </TMPL_IF>