Last modified: 2014-08-13 17:25:42 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T71293, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 69293 - [PageMigration] On lowercase title, page not recognised
[PageMigration] On lowercase title, page not recognised
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Translate (Other open bugs)
master
All All
: Normal normal (vote)
: MW 1.24 version
Assigned To: Pratik Lahoti
:
Depends on:
Blocks: 65740
  Show dependency treegraph
 
Reported: 2014-08-08 12:55 UTC by Nemo
Modified: 2014-08-13 17:25 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Nemo 2014-08-08 12:55:48 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.
Comment 1 Pratik Lahoti 2014-08-08 20:53:21 UTC
(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.
Comment 2 Nemo 2014-08-10 14:31:04 UTC
(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?).
Comment 3 Pratik Lahoti 2014-08-10 14:45:41 UTC
(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().
Comment 4 Gerrit Notification Bot 2014-08-10 15:03:29 UTC
Change 153320 had a related patch set uploaded by BPositive:
Page title normalized at Special:PageMigration

https://gerrit.wikimedia.org/r/153320
Comment 5 Gerrit Notification Bot 2014-08-13 17:25:42 UTC
Change 153320 merged by jenkins-bot:
Page title normalized at Special:PageMigration

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

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links