https://bugzilla.wikimedia.org/show_bug.cgi?id=69293

--- Comment #3 from Pratik Lahoti <[email protected]> ---
(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().

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to