Page MenuHomePhabricator

Strip rdfrom parameter in canonical urls
Closed, DuplicatePublic


When following an interwiki redirect (e.g., the target page has a query parameter rdfrom.

This is included (just like any other query parameter is by default) in the canonical url:

<link rel="canonical" href="" />

For normal redirect, we strip them.

E.g. displays "Runway (fashion)" with a "(Redirected from Catwalk)" message, but outputs:

<link rel="canonical" href="" />

Removing any trace of the redirect.

Event Timeline

Krinkle created this task.Dec 18 2014, 7:22 AM
Krinkle raised the priority of this task from to Needs Triage.
Krinkle updated the task description. (Show Details)
Krinkle changed Security from none to None.
Krinkle added a subscriber: Krinkle.

Hm... our handling is rather inconsistent. If the redirect had any query parameters, those end up stripped as well:

<link rel="canonical" href="" />

<link rel="canonical" href="" />
Aklapper triaged this task as Low priority.Dec 19 2014, 3:37 PM