Steps to replicate the issue (include links if applicable):
- Go to any Wikimedia wiki
- Preview or publish the wikitext [[:toolforge:pageviews/?start=2025-10-07&end=2025-11-05&project=en.wikipedia.org&pages=Example]]
What happens?:
A link is created to https://pageviews.wmcloud.org/%3Fstart%3D2025-10-07%26end%3D2025-11-05%26project%3Den.wikipedia.org%26pages%3DExample, which is a 404 error. This error currently affects at least 71,000 pages on enwiki just with the template I encountered it with; while not all of those use that feature of the template, all Redirects for Discussion subpages do, and do so many times over, likely bringing the total number of broken links into the hundreds of thousands even before considering other pages that might use [[toolforge:]] links with URL parameters directly or through other templates.
What should have happened instead?:
The link should have gone to https://pageviews.wmcloud.org/?start=D2025-10-07&end=2025-11-05&project=en.wikipedia.org&pages=Example, i.e. not escaping the question mark, ampersands, and equal signs. Until recently this was how such links behaved, as evidenced by en:Module:PageLinks having relied on this behavior for many years without issue.
Other information (browser name/version, screenshots, etc.):
First raised on enwiki by Myceteae here.