Web browser: ---
            Bug ID: 59863
           Summary: Links to the foreign repository pictures use local
                    wiki and not foreign repo file namespace
           Product: MediaWiki extensions
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: Unprioritized
         Component: MultimediaViewer
    Classification: Unclassified
   Mobile Platform: ---

[ Bug symptoms ]

As highlighted on,
the link to the file on Commons contained twice the file namespace.

For example, [[File:Quux.jpg]] linked to

This has been fixed, writing once the namespace. So for en. File:File: became
File: and all is fine.

But in other MediaWiki languages, the link were:

And is now:

But it should be:

Thank you to Okki for reporting this.

[ Bug analysis ]

In ext.multimediaViewer.lightboxinterface.js, LIP.setFilePageLink:

For Commons as foreign repo, linkpath = repoInfo.server + repoInfo.articlepath
repoInfo.articlepath is /wiki/$1, $1 being substituted by

Instead, $1 should be replaced by repofileNameSpace + ":" +

Where repofileNameSpace is the file namespace on the foreign repo.

You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
Wikibugs-l mailing list

Reply via email to