Last modified: 2005-05-22 12:38:25 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 T2428, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 428 - Allow links to pages beginning with slashes in namespaces where subpages are disabled
Allow links to pages beginning with slashes in namespaces where subpages are ...
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Lowest minor with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2004-09-09 00:25 UTC by Wil Mahan
Modified: 2005-05-22 12:38 UTC (History)
0 users

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


Attachments
Patch to not strip leading slashes when subpages are disabled (521 bytes, patch)
2004-09-09 00:27 UTC, Wil Mahan
Details

Description Wil Mahan 2004-09-09 00:25:46 UTC
As described at [[Wikipedia:Naming_conventions_(technical_restrictions)]], it is
not possible to link to a page that begins with a slash. This is due to the code
that checks for subpages; even though subpages are disabled in the main
namespace of Wikipedia, leading slashes are stripped from links.

I think it is simple to fix this; when subpages are disabled in a namespace,
don't strip off leading slashes from links, rather treat links beginning with
slashes like any other link.

Workaround: use / instead of a slash character in the link. But in my
opinion, modifying the code to accept links beginning with slashes would be more
intuitive for editors.
Comment 1 Wil Mahan 2004-09-09 00:27:07 UTC
Created attachment 29 [details]
Patch to not strip leading slashes when subpages are disabled
Comment 2 Ævar Arnfjörð Bjarmason 2005-05-21 20:11:32 UTC
Comment on attachment 29 [details]
Patch to not strip leading slashes when subpages are disabled

Marking the attachment as obsolete since it doesn't apply to REL1_4 or HEAD.
Comment 3 Ævar Arnfjörð Bjarmason 2005-05-21 20:19:04 UTC
Closing the bug as INVALID, it is possible to link to these pages, if you want
to link to a page named "/asdf" from the main namespace you make a link like
[[/asdf]], if you want to link to it from any other namespace you make a link
like [[:/asdf]].

Please reopen the bug if the problem persists and provide a detailed explanation
of how to reproduce it.
Comment 4 Zigger 2005-05-22 12:38:25 UTC
See also bug 98 and bug 2088.

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


Navigation
Links