Motivation
When Wikipedia readers jumped down to the references section by clicking on a footnote indicator, the major jump mark (arrow or caret) should work, if we know where users came from. If they reached the section by clicking on a footnote indicator, it should thus lead them back to that footnote indicator.
Acceptance Criteria
GIVEN I am on an article page
AND a footnote is mentioned multiple times
WHEN I click on its second mention
AND then on the arrow preceding the footnote
THEN the page jumps back to my reading position.
GIVEN I am on an article page
AND a footnote is mentioned multiple times
WHEN I scroll down to the references section
AND I click on the arrow preceding the footnote
THEN nothing happens.
- The arrow is already clickable if there is just one mention to it. The change is that is now is always clickable if we know where the user came from
- The arrow is the de-wiki implementation of the major jump mark. In de-wiki it is a caret (^), and the symbol used should stay to whichever the community decided on.
Mock:
(just to remember where the arrow is that we are talking about)
Notes
- All of this will be handled through javascript.