Summary: viewing diff of redirect without specifying oldid
makes wgPagename wrong
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
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
http://www.mediawiki.org/wiki/Index.php . 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.
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: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are watching all bug changes.
Wikibugs-l mailing list