Page MenuHomePhabricator

VE's Add Category tool removes prefixes that match namespace names
Open, Needs TriagePublicBUG REPORT

Description

Steps to replicate the issue:

  • In a VisualEditor session, try to add a new (non-existent) category to a page, that is named Wikipedia:Projects, using the built-in "Categories" page-Option

What happens?:

  • The prompt to create a "New category", is auto-truncating the prefix.
    • E.g. Typing in Project:Demonstration will only let me use Demonstration as the category-name.

image.png (740×487 px, 55 KB)

What should have happened instead?:

  • It should offer the exact category name that I wrote.
    • Perhaps that would be in addition to the prefix-removed category-name, if that's needed?
    • I would guess that we're currently auto-truncating it, in order to solve the problem of users trying to paste in the full page-title including the Category: prefix itself (or localized variants), which probably should still be removed (if easy).

Other information: