Last modified: 2014-08-13 17:25:42 UTC
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.
(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?).
(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().
Change 153320 had a related patch set uploaded by BPositive: Page title normalized at Special:PageMigration https://gerrit.wikimedia.org/r/153320
Change 153320 merged by jenkins-bot: Page title normalized at Special:PageMigration https://gerrit.wikimedia.org/r/153320