Page MenuHomePhabricator

When moving, warn if people try to move to Foo:Foo:Bar (repeated namespace)
Open, LowPublicFeature

Description

If person copies and pastes the full page name on to the move field, and doesn't realize there is a drop down box for namespace, the result is a repeated namespace.

We should warn if someone tries to move to Foo:Foo:Bar.


Version: 1.23.0
Severity: enhancement

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 3:00 AM
bzimport set Reference to bz60399.
bzimport added a subscriber: Unknown Object (MLST).

Closely related to bug 48239. Perhaps even a duplicate.

Should it warn for Foo:Bar:Baz too?

Hi,

I am working on this task. What would be a good alert message for the users when there is repeated namespace in title?

Any message that allows users to understand what exactly is the problem and how to fix the problem. :)
Also see https://lists.wikimedia.org/pipermail/wikitech-l/2017-February/087638.html for feedback.

Please suggest a good way to prompt a dialog box.

I tried OOjs UI/Windows/Message Dialogs but it gives a TypeError: OO.ui.MessageDialog is not a constructor.

Change 339384 had a related patch set uploaded (by Shanikae):
Add warning when repeated namespace in title

https://gerrit.wikimedia.org/r/339384

This could be fairly annoying if the site intentionally uses page titles like this – the only one I'm aware of is German Wikipedia, with tons of pages like these:

('Kategorie' stands for 'Category', 'Vorlage' stands for 'Template'; no, I don't know why they do such a thing)

This could be fairly annoying if the site intentionally uses page titles like this – the only one I'm aware of is German Wikipedia,

What would be a solution?

I'm not sure what the right solution is. It might be okay if we just use a less intrusive warning, like I suggested in the Gerrit changeset comments.

This could be fairly annoying if the site intentionally uses page titles like this – the only one I'm aware of is German Wikipedia,

What would be a solution?

The proper solution is to get rid of the drop-down menu at Special:MovePage/Foo; cf. T50239: Special:MovePage's namespace dropdown menu needs further thought.

We could still catch "Category:Category:Foo" (same namespace) with a warning, perhaps. If someone wants to use "Wikipedia:Category:Foo" (different namespaces) when using a single input field (i.e., with no drop-down menu), we do not need to prevent or discourage that, in my opinion.

Krinkle removed a project: good first task.
Krinkle removed a subscriber: wikibugs-l-list.
Krinkle subscribed.

Untagging an old "good first task tag from 2014. This component of MW has no owner currently, which means it maybe difficult to find someone to make feature decisions, or a mentor, or get code review etc.

Aklapper added a subscriber: Shanikae.

Removing task assignee due to inactivity, as this open task has been assigned to the same person for more than two years (see the emails sent to the task assignee on Oct27 and Nov23). Please assign this task to yourself again if you still realistically [plan to] work on this task - it would be welcome.
(See https://www.mediawiki.org/wiki/Bug_management/Assignee_cleanup for tips how to best manage your individual work in Phabricator.)

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:13 AM