Last modified: 2014-06-27 18:17:35 UTC
Multimedia Viewer currently does not display namespace prefixes. For example, if I use File:Foo on page "User talk:Keegan", it should show an appropriate link to that namespace. Instead MMV displays the file usage link as "Keegan," making it appear as though it is in the main page space. This is undesired behavior.
I think the problem is in \MultimediaViewer\resources\mmv\ui\mmv.ui.fileUsage.js in line 138, item.page.getMainText() but I don't know how to fix. Also, the problem is for both local and global file links.
We probably want to use getPrefixedText() instead.
(In reply to TeleComNasSprVen from comment #1) > Also, the problem is for both local and global file links. I don't think that's currently the case, at least for at my examples. For example at https://fr.wikipedia.org/wiki/Portail:Animaux_de_compagnie#mediaviewer/Fichier:Golden_retriever_welpe_meer.jpg see "On other sites": "Benutzer:Vorderstrasse" (prefixed with user namespace) see Bug 64910 with a namespace prefix too much in the linked url though. So was the api call changed there so the namespace is now also returned as part of title?
Change 138999 had a related patch set uploaded by Gergő Tisza: Fix URL handling for global usage list https://gerrit.wikimedia.org/r/138999
Change 138999 merged by jenkins-bot: Fix URL handling for global usage list https://gerrit.wikimedia.org/r/138999