Description

The "Free Parent Link" Syntax

does no longer work as it used to in 1.1. And more interestingly, the "Free Sibling Link" does not work as well.

Steps to reproduce

  1. go to e.g. http://moinmaster.wikiwikiweb.de/HelpOnEditing/SubPages and check the last link

Example

 * [:../:free parent link]
 * [:../SubPages:free sibling link]

Renders as:

Details

This Wiki or Moin Master.

Workaround

Discussion

This syntax was experimental and was never official documented syntax. The official syntax for free links is

 * ["free link"]
 * ["../sibling link"]
 * ["../"]

If it worked in 1.1, we should try to make it work again in 1.3. In 1.4 we should redesign the syntax, specifically the link syntax which is a big mess. -- NirSoffer 2005-02-17 21:21:09

Note that someone added this link type to HelpOnLinking in rev 15 on 2004-10-19 15:03:49: http://moinmoin.wikiwikiweb.de/HelpOnLinking?action=diff&rev2=15&rev1=14


Why do we have two ways for free links?

 * ["free link"]
 * [:free link]

 * [:free link:text for free link]

We can do it by extending [" "] syntax.

 * ["free link"]
 * ["free link" text for free link]

Then how about to treat [" "] and [: :] in a similar way?

 * [:free link:]  (instead of [:free link])
 * [:free link: text for free link]

We can place any meta character (maybe configurable) here. for example, [' '], [! !], ...


I think this is a bug. Fixing subpage linking requires the Self: formatter of text_html.interwikilink to recognize the subpage marker ('/'). Fixing this is quite easy, just add the check and add the page_name to the url. fix-subpage-Self.diff

-- OliverGraf 2005-03-07 13:29:31

Fixing parent links ('../') is equally easy. It needs to be checked, too. But I must commit that we really need to rewrite this in 1.4. But for 1.3 this should be fixed. fix-subpage-Self2.diff

-- OliverGraf 2005-03-07 13:39:33

This patch even allow links like: [wiki:Self:../SubPage Link Name] -- OliverGraf 2005-03-07 13:59:12

Plan


CategoryMoinMoinBugFixed CategoryRelease1.3.4

MoinMoin: MoinMoinBugs/FreeParentLinksAreBroken (last edited 2007-10-29 19:12:53 by localhost)