Description

Relative Wiki links in reStructuredText format don't work in 1.5.4.

Steps to reproduce

See below.

Example

not

Source code:

Link to a (non-existing) SubPage__ does in fact link to somewhere.

.. __: /SubPage

Result:

Link to a (non-existing) SubPage does in fact link to somewhere.

Details

MoinMoin Version

OS and Version

Python Version

Server Setup

Server Details

Language you are using the wiki in (set in the browser/UserPreferences)

Workaround

This patch fixes the bug:

*** MoinMoin/parser/rst.py.orig Thu May 11 18:24:00 2006
--- MoinMoin/parser/rst.py      Sun Aug 13 18:59:07 2006
***************
*** 376,382 ****
                      node['classes'].append(prefix)
              else:
                  # Default case - make a link to a wiki page.
!                 page = MoinMoin.Page.Page(self.request, refuri)
                  node['refuri'] = page.url(self.request)
                  if not page.exists():
                      node['classes'].append('nonexistent')
--- 376,383 ----
                      node['classes'].append(prefix)
              else:
                  # Default case - make a link to a wiki page.
!                 page = MoinMoin.Page.Page(self.request,
!                                           wikiutil.AbsPageName(self.request, self.formatter.page.page_name, refuri))
                  node['refuri'] = page.url(self.request)
                  if not page.exists():
                      node['classes'].append('nonexistent')

Discussion

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/ReStructuredTextRelativeLinksBroken (last edited 2007-10-29 19:07:34 by localhost)