Page MenuHomePhabricator

rel=canonical is shown on redirect=no but not upon redirection
Closed, ResolvedPublic

Description

Our rel=canonical code seams to be implemented incorrectly.

No rel=canonical on https://en.wikipedia.org/wiki/Redirection
But a rel=canonical on https://en.wikipedia.org/w/index.php?title=Redirection&redirect=no

rel=canonical is supposed to canonicalize https://en.wikipedia.org/wiki/Redirection to the page it points to https://en.wikipedia.org/wiki/Redirect

The rel=canonical on the redirect=no is rubbish, the content displayed at that url is not the article and hence the canonical version is NOT the article being redirected to.


Version: unspecified
Severity: normal

Details

Reference
bz35022

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 12:15 AM
bzimport set Reference to bz35022.
bzimport added a subscriber: Unknown Object (MLST).
Nemo_bis renamed this task from rel=canonical is implemented incorrectly to rel=canonical is shown on redirect=no but not upon redirection.Jan 26 2015, 12:00 PM
Nemo_bis closed this task as Resolved.
Nemo_bis claimed this task.
Nemo_bis set Security to None.
Nemo_bis subscribed.

This looks fixed.

$ curl "https://en.wikipedia.org/w/index.php?title=Redirection&redirect=no" | grep canonical
<link rel="canonical" href="http://en.wikipedia.org/w/index.php?title=Redirection&amp;redirect=no" />
$ curl https://en.wikipedia.org/w/index.php?title=Redirection | grep canonical
<link rel="canonical" href="http://en.wikipedia.org/wiki/Redirect" />