Last modified: 2009-07-20 02:08:17 UTC
If on [[Talk:Foo]] I create a link to [[/Bar]], the link leads to [[Talk:Foo/Bar]]. If I put the same wikisyntax in an edit summary, the same is not true. I suggest to aid intuition that it is. The target page should probably be permanently subst'ed like the pipe trick, so that if the page is moved and the subpage is not, or vice versa, the link does not break.
Created attachment 4960 [details] Patch to fix and allow extended behavior of subpage linkes I've attached a patch that fixes the implementation of subPageSubtitle so that it will not abruptly end if there are "missing" pages in the middle of a sub page hierarchy. Also it adds a new config variable of $wgShowNonExistingSubPages which defaults to false. when set to true the non-existing subpages will be displayed.
This patch seems to belong to a different bug?
Comment on attachment 4960 [details] Patch to fix and allow extended behavior of subpage linkes Ooops.. I was sure I submitted this on bug #6833
-patch
*** Bug 6252 has been marked as a duplicate of this bug. ***
Done in r53514... Moved Parser::maybeDoSubpage guts to Linker to call from both locations. Added some parser test cases. Note that this might not behave exactly like the main parser in cases where the link text would get altered, but the links are functional. Yay!