Last modified: 2012-10-27 14:29:40 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T13970, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 11970 - Ending slash trimmed in relative links to subpages
Ending slash trimmed in relative links to subpages
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://test.wikipedia.org/wiki/User:D...
: parser
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-11-14 05:28 UTC by Danny B.
Modified: 2012-10-27 14:29 UTC (History)
3 users (show)

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


Attachments

Description Danny B. 2007-11-14 05:28:05 UTC
The following syntaxes render as link to /sub instead of /sub/

* [[/sub/]]
* [[/sub/|]]
* [[/sub/|sub]]
Comment 1 Matěj Grabovský 2011-06-26 18:18:58 UTC
Should we allow (sub)pages with empty name, though?

In my opinion, we should just normalize the absolute links to trim the slash as well and disallow such pages altogether.
Comment 2 db [inactive,noenotif] 2012-10-27 14:26:57 UTC
This is like that linking feature is designed.
In Linker::normalizeSubpageLink you find the comment

 / at end means we don't want the slash to be shown

At that is done, so this bug is INVALID.

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


Navigation
Links