Page MenuHomePhabricator

Redirect hrefs do not round trip cleanly (./ not stripped)
Closed, ResolvedPublic

Description

Input wikitext:

#REDIRECT [[Foo]]

Output HTML:

<link rel="mw:PageProp/redirect" href="./Foo" data-parsoid='{"src":"#REDIRECT ","a&":{"href":"./Foo"},"sa":{"href":"Foo"},"dsr":[0,17,null,null]}'>

Input HTML (same as output of previous step with data-parsoid stripped):

<link rel="mw:PageProp/redirect" href="./Foo">

Output wikitext:

#REDIRECT [[./Foo]]

So the serializer doesn't strip ./ prefixes. Either ./ prefixes should not be present in the output HTML, or the serializer should strip them correctly.


Version: unspecified
Severity: normal

Details

Reference
bz59673

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:19 AM
bzimport set Reference to bz59673.

Change 109694 had a related patch set uploaded by Subramanya Sastry:
(Bug 59673) Fixed serialiation of link redirects

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

Change 109694 merged by jenkins-bot:
(Bug 59673) Fixed serialization of link redirects

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

Yet to be rt-tested (and deployed later).