Summary: viewing diff of redirect without specifying oldid
                    makes wgPagename wrong
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: Normal
         Component: General/Unknown

When this diff link is loaded:

the wgPagename variable (easily visible in the source) says


That's the name of the target page, not the redirect page which is being

Simultaneously, this bug makes all the navigation links at the top of the page
wrong. For example, the link in the "article" tab points to:

I noticed this in the Vector skin and checked that it also happens with the
monobook skin. 

It seems to happen on every redirect if the specific syntax above is used to
generate the diff. If another syntax is used:

then everything works correctly. 

The syntax of the link at the top should be correct, according to . One reason that links like the ones
at the top are needed is because the API output for watchlists only includes
the revid, not the oldid.|title|timestamp|user|comment

Adding 'redirect=no' to the URL does fix the problem, but according to the
docs, redirect=no "has effect only on action=view and action=render and only if
neither oldid nor diff is given," but I am passing the diff parameter in the

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are watching all bug changes.

Wikibugs-l mailing list

Reply via email to