Page MenuHomePhabricator

Page scrolls to top when opening VE mobile
Closed, ResolvedPublic

Description

The current heading should be positioned at the top of the page to ensure a smooth transition to editing. This was working until very recently.

Event Timeline

The data-section attributes appears to no longer be in the DOM.

@Jdlrobson is there a reason data-section was removed?

Change 983251 had a related patch set uploaded (by Esanders; author: Esanders):

[mediawiki/extensions/MobileFrontend@master] Match section param inside query string

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

@Esanders seems like a mistake. Should we add the data attribute back in core or do you prefer relying on the query string as in your patch?

I guess this works well enough. We have T300467 about making the section number more easily accessible.

Change 983251 merged by jenkins-bot:

[mediawiki/extensions/MobileFrontend@master] Match section param inside query string

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