changeset 2794:e56f68a6f0fa

rst parser: fix link generation to generate absolute links
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 01 Sep 2007 23:13:24 +0200
parents b077f4b271c9
children f24afde03048
files MoinMoin/parser/text_rst.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/parser/text_rst.py	Sat Sep 01 01:37:06 2007 +0200
+++ b/MoinMoin/parser/text_rst.py	Sat Sep 01 23:13:24 2007 +0200
@@ -381,7 +381,7 @@
                 if '#' in refuri:
                     pagename, anchor = rsplit(refuri, '#', 1)
                 page = Page(self.request, wikiutil.AbsPageName(self.formatter.page.page_name, pagename))
-                node['refuri'] = page.url(self.request, anchor=anchor)
+                node['refuri'] = page.url(self.request, anchor=anchor, relative=False)
                 if not page.exists():
                     node['classes'].append('nonexistent')
         html4css1.HTMLTranslator.visit_reference(self, node)