Page MenuHomePhabricator

[PageMigration] On lowercase title, page not recognised
Closed, ResolvedPublic

Description

  1. https://www.mediawiki.org/wiki/Special:PageMigration
  2. Enter languages / pl (lowercase) and press "import"

I. Observed: nothing seen. Console contains: TypeError: baseHref is undefined
II. Expected: [[languages]] is equivalent to [[Languages]] on this wiki.


Version: master
Severity: normal

Details

Reference
bz69293

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 3:31 AM
bzimport set Reference to bz69293.

pr4tiklahoti wrote:

(In reply to Nemo from comment #0)

I. Observed: nothing seen. Console contains: TypeError: baseHref is undefined

That baseHref error is due to something else and has to do with the mw search input field as you type in.

II. Expected: [[languages]] is equivalent to [[Languages]] on this wiki.

But, there is no message group called 'languages' on this wiki.

(In reply to Pratik Lahoti from comment #1)

But, there is no message group called 'languages' on this wiki.

Uh? Pages are not message groups and 'languages' ~ 'Languages'.

Certainly there is a a standard way to normalise titles somewhere, perhaps https://www.mediawiki.org/wiki/RL/DM#mediawiki.Title (getName?).

pr4tiklahoti wrote:

(In reply to Nemo from comment #2)

Certainly there is a a standard way to normalise titles somewhere, perhaps
https://www.mediawiki.org/wiki/RL/DM#mediawiki.Title (getName?).

Sure. We could use getPrefixedDB() or toString() (which is an alias to getPrefixedDB()). getName() takes off the namespace from the title.

Example:

var t = new mw.Title( 'help:special pages/fr' )

t.getName()

"Special_pages/fr"

t.getPrefixedDB()

"Help:Special_pages/fr"

t.toString()

"Help:Special_pages/fr"

So, we should go ahead with getPrefixedDB().

gerritadmin wrote:

Change 153320 had a related patch set uploaded by BPositive:
Page title normalized at Special:PageMigration

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

gerritadmin wrote:

Change 153320 merged by jenkins-bot:
Page title normalized at Special:PageMigration

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