Page MenuHomePhabricator

References in isolated posts, create duplicate "[1]" (#cite_note-1) links
Open, MediumPublic

Description

<ref>s displayed on a page (either board or topic), should always increment, and never duplicate each other. Otherwise we get duplicate #cite_note-1 links

E.g. If I click the for the "foo" reference at https://www.mediawiki.org/w/index.php?title=Topic:Sm9eagq43pa1pjxg&topic_showPostId=smiryzgo2387qfe2#flow-post-smiryzgo2387qfe2

Expected: it only scrolls up to "w:test banana [1]" directly above.

Actual: it scrolls to the top of the topic, to the "One list [1]", which is in the post above.

Event Timeline

Quiddity raised the priority of this task from to Needs Triage.
Quiddity updated the task description. (Show Details)
Quiddity subscribed.
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Catrope triaged this task as Medium priority.Aug 12 2015, 11:41 PM
Catrope subscribed.

This seems to partly be an issue in Cite (or Parsoid's implementation of Cite?) where using it in multiple contexts on the same page causes ID conflicts.

This seems to partly be an issue in Cite (or Parsoid's implementation of Cite?) where using it in multiple contexts on the same page causes ID conflicts.

Parsoid doesn't have context about how a particular piece of wikitext will be used on a page. Flow's individual posts on a topic page are parsed independently and there is no "topic-level state" to force different cite ids to be generated. So, this isn't something that Parsoid can fix in isolation. Let us think through this use case a bit more.