Last modified: 2009-07-20 02:08:17 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 14080 - Short notation links to subpages don't work in edit summaries
Short notation links to subpages don't work in edit summaries
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Page editing (Other open bugs)
unspecified
All All
: Normal minor (vote)
: ---
Assigned To: Brion Vibber
:
: 6252 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-05-11 00:55 UTC by Will Hirsch
Modified: 2009-07-20 02:08 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Patch to fix and allow extended behavior of subpage linkes (1.46 KB, patch)
2008-06-06 14:18 UTC, Edward Rudd
Details

Description Will Hirsch 2008-05-11 00:55:08 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.
Comment 1 Edward Rudd 2008-06-06 14:18:08 UTC
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.
Comment 2 Brion Vibber 2008-06-06 17:48:35 UTC
This patch seems to belong to a different bug?
Comment 3 Edward Rudd 2008-06-06 23:49:49 UTC
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
Comment 4 Siebrand Mazeland 2009-01-06 23:52:05 UTC
-patch
Comment 5 Brion Vibber 2009-07-19 23:39:44 UTC
*** Bug 6252 has been marked as a duplicate of this bug. ***
Comment 6 Brion Vibber 2009-07-20 02:08:17 UTC
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!

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links