Page MenuHomePhabricator

Implement a way to set a canonical url in OutputPage
Closed, ResolvedPublic


MediaWiki should have a way to canonicalize URLs. Squid should redirect to point to the canonical URL.

Version: 1.18.x
Severity: enhancement
See Also:



Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 11:31 PM
bzimport set Reference to bz28602.
bzimport added a subscriber: Unknown Object (MLST).

Let's try to get this out in 1.19, adding milestone

bug 25882?

I planned to write this into my page output branch. After scanning code I found it fit more into that project because whether you want a canonical url or not is very dependent on Article/PageView/SpecialPage processing since you don't want it on diff pages, oldids, etc...

switch to milestone, remove release tracking dep

Krinkle claimed this task.

This has since been solved. The OutputPage::setCanonicalUrl() method exists for this.

And per T27882, it is also used by default on all page views.