[CMF-checkins] CVS: CMF/CMFWiki/skins/zpt_wiki - wikipage_backlinks.pt:1.3

Ken Manheimer klm@zope.com
Tue, 5 Feb 2002 17:06:54 -0500


Update of /cvs-repository/CMF/CMFWiki/skins/zpt_wiki
In directory cvs.zope.org:/tmp/cvs-serv7413

Modified Files:
	wikipage_backlinks.pt 
Log Message:
Make constructed links use absolute urls (via wiki_page_url() and
wiki_base_url()) as much as possible, so inadvertant acquisition
nesting (".../FrontPage/FrontPage") doesn't screw up at surprising
moments.


=== CMF/CMFWiki/skins/zpt_wiki/wikipage_backlinks.pt 1.2 => 1.3 ===
 <h2> Backlinks and Nesting Information </h2>
 
-<p> <a href="thispage" tal:attributes="href thispage"
+<p> <a href="thispage" tal:attributes="href here/wiki_page_url"
     ><span tal:replace="thispage">thispage</span></a>
     is linked on the following pages:
 </p>
@@ -51,7 +51,8 @@
                               disabled python: not mover">
   </td>
   <td> <a href="../thispage"
-          tal:attributes="href python: '../%s' % link['pageid']"
+          tal:attributes="href python: '%s/%s' % (here.wiki_base_url(),
+                                                  link['pageid'])"
           tal:content="link/pageid"
        >referrer</a>
   </td>