response
authorJoey Hess <joey@kodama.kitenet.net>
Thu, 10 Apr 2008 23:54:38 +0000 (19:54 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Thu, 10 Apr 2008 23:54:38 +0000 (19:54 -0400)
doc/bugs/relative_links.mdwn
templates/change.tmpl

index 1a59f2401967606298123186bbe0f49c557d3e66..a1dc8f3736e41041663884b0454e53d96b5e9530 100644 (file)
@@ -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]]
index 55aabe201fe0e5fe5e8ddf36a92b8fd17eddc83c..4a99cf5ff47a457774e686d1cbd0c320c142d363 100644 (file)
@@ -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>