Special:Diff should forward parameters
Closed, ResolvedPublicFeature

Description

Feature summary:

A Special:Diff link with parameters, like /wiki/Special:Diff/123456?foo=bar, should redirect to /w/index.php?diff=123456&foo=bar intead of just /w/index.php?diff=123456. I'm not sure if this was the case before.

Use case(s):

I have a script that detects diff links and loads diffs in-place. Before loading, it adds a few parameters to the URL, like action=render, diffonly=1, unhide=1 and bot, for optimization and convenience. It would be nice if MediaWiki could preserve these.

Benefits:

See intended use case.

Event Timeline

Change #1248852 had a related patch set uploaded (by NguoiDungKhongDinhDanh; author: NguoiDungKhongDinhDanh):

[mediawiki/core@master] Make Special:Diff forward certain URL parameters

https://gerrit.wikimedia.org/r/1248852

NguoiDungKhongDinhDanh renamed this task from Special:Diff should pass along parameters to Special:Diff should forward parameters.Mar 7 2026, 1:06 AM

Change #1248852 merged by jenkins-bot:

[mediawiki/core@master] Make Special:Diff forward certain URL parameters

https://gerrit.wikimedia.org/r/1248852