Page MenuHomePhabricator

Special:Export remove "Category:" (or local name) from text box
Closed, ResolvedPublic

Description

Would it be possible for when the user presses "Add" that if they have put "Category:" (or whatever the localised version is), that it is removed by the software

I've done it a couple of times with it in, and then am like WTF when it doesnt work

Cheers!


Version: 1.13.x
Severity: minor
URL: http://en.wikipedia.org/wiki/Special:Export

Details

Reference
bz14790

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:12 PM
bzimport set Reference to bz14790.
bzimport added a subscriber: Unknown Object (MLST).

Changing to Enhancement (as it isnt really a bug)

I'd say this is a real bug, since we usually accept such things with namespace prefixes with no problem.

Steps to reproduce:

  1. Go to http://en.wikipedia.org/wiki/Special:Export
  1. In "Add pages to from category" box type "Category:Long Island"
  1. Click "Add" button

Expected results:

A bunch of pages from http://en.wikipedia.org/wiki/Category:Long_Island should be listed in the export page list box.

Actual results:

No pages are listed.

Workaround:

Type "Long Island" without the "Category:" namespace prefix.

Suggested fix:

Normalize the category name more sensible in Special:Export, so that category names are accepted both with and without the 'Category:' prefix.

Cheers Brion,

I suppose, its only a case of sending it to a function thats already written and having the normalised title sent back