Page MenuHomePhabricator

Subpages list link on action=info is "Special:PrefixIndex/User:Foo/", does not list "User:Foo_/_bar"
Open, LowestPublic

Description

We are talking on frwiki about how to list subpages (https://fr.wikipedia.org/wiki/Discussion_Projet:JavaScript/Rapport_de_bug/Archive_1#MediaWiki:Gadget-SousPages.js).

We looked how action=info do and found there is a bug:

You can create a subpage of "User:Foo" called "User:Foo_/_bar" (see for example https://fr.wikipedia.org/wiki/Special:PrefixIndex/Utilisateur:Polmars).

But the link provided by action=info to list subpages is "Special:PrefixIndex/User:Foo/", which don’t list "User:Foo_/_bar".

Furthermore, these subpages are not counted in action=info. In this example, there are 94 subpages, but only 49 without space ; action=info says 49 subpages.


Version: 1.22.0
Severity: minor

Details

Reference
bz46750

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 22 2014, 1:32 AM
bzimport set Reference to bz46750.
bzimport added a subscriber: Unknown Object (MLST).
Ltrlg created this task.Apr 1 2013, 8:17 AM
Pipetricker added a subscriber: Pipetricker.EditedApr 3 2016, 8:47 PM

Notice that "User:Foo_/_bar" is a subpage not of "User:Foo", but of "User:Foo_".

  1. Extraneous space and underscore characters in wikilinks are normally trimmed, so that a link marked up as "[[_Foo_ _bar_ ]]" is treated like "[[Foo bar]]".
  2. But spaces or underscores surrounding the "/" in the pagename of a subpage are not trimmed, like they are not trimmed in namespaces where subpages are disabled.
  3. People used to 1 but not aware of 2 sometimes create subpages such as "Foo:Bar / baz", not realizing that the created page "_baz" is a subpage of (the probably non-existing page) "Foo:Bar_" and not of "Foo:Bar".

This is also disguised by the breadcrumb on "Foo:Bar_/_baz" linking to "Foo:Bar" and not to "Foo:Bar_".

This would be solved by trimming space or underscore characters surrounding the "/" in links to subpages.

But first existing subpages with pagenames like these would have to be moved so they remain linked and easily accessible. Maybe that should be done anyway?

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptApr 3 2016, 8:47 PM
Pipetricker renamed this task from Subpages list link on action=info is "Special:PrefixIndex/User:Foo/", does not list "User:Foo_/_bar" to "Special:PrefixIndex/User:Foo/" (subpages list link on action=info page) does not list "User:Foo_/_bar".Apr 25 2016, 12:57 PM
Pipetricker renamed this task from "Special:PrefixIndex/User:Foo/" (subpages list link on action=info page) does not list "User:Foo_/_bar" to Subpages list link on action=info is "Special:PrefixIndex/User:Foo/", does not list "User:Foo_/_bar".May 16 2016, 9:28 PM
DannyS712 updated the task description. (Show Details)Aug 13 2019, 7:04 AM
DannyS712 added a subscriber: DannyS712.