Page MenuHomePhabricator

Scroll position is not retained after publishing an edit
Open, MediumPublic

Description

Steps to reproduce:

  1. Visit the Beta Cluster: https://en.wikipedia.beta.wmflabs.org/.
  2. Log in (if you are not already).
  3. Ensure the Use Legacy Vector setting is disabled within Special:Preferences#mw-prefsection-rendering.
  4. Visit a page within the main namespace, like Cats.
  5. Ensure your page is at least 1200px wide.
  6. Scroll the page down.
  7. Notice the sticky header appears.
  8. Click on the Edit button on the sticky header when you reach the section: https://en.wikipedia.beta.wmflabs.org/wiki/Cats#Taxonomy_and_evolution.
  9. When the editor opens, scroll down to the section: https://en.wikipedia.beta.wmflabs.org/wiki/Cats#Health and make an edit.
  10. Publish your changes.

Observed Result: After publishing the edit, it didn't scroll to the position where the edit was made but rather to the position where the Edit button was clicked on the sticky header.

Expected Result: The article should scroll to the position where the edit was made.

Environment: Beta cluster.

Event Timeline

Jdlrobson subscribed.

This will need to be handled by the editing team and the VisualEditor extension code as the VisualEditor ultimately decides where and when to scroll. This will also likely be an outcome of T293158.

Expected Result: The article should scroll to the position where the edit was made.

I don't think this is easy to define. An edit could change content in every paragraph in the page, or it could change metadata which isn't visible.