Page MenuHomePhabricator

VisualEditor: Scrolling for &vesection=N works correctly except for N=0, where it scrolls to the bottom of the document
Closed, ResolvedPublic

Description

When a page is opened in the wikitext editor with section=0, the top of the page is presented for editing The is the desired and expected behavior:

https://en.wikipedia.org/w/index.php?title=Armadillo&action=edit&section=0

However, VisualEditor does not do this when vesection=0 is opened up for editing. The cursor is placed at the top of the page, but the screen scrolls down to the bottom of the page. The expected behavior is that the scree stay at the top of the window:

https://en.wikipedia.org/w/index.php?title=Armadillo&veaction=edit&vesection=0

This does not occur when using section=0:

https://en.wikipedia.org/w/index.php?title=Armadillo&veaction=edit&section=0

This is particularly important to the Russian Wikipedia, where they regularly use edit&section=0 links and it's easy to wind up with vesection=0.

Here's the report on my ru.wp talk page, with ru.wp links:
https://ru.wikipedia.org/w/index.php?title=%D0%9E%D0%B1%D1%81%D1%83%D0%B6%D0%B4%D0%B5%D0%BD%D0%B8%D0%B5_%D1%83%D1%87%D0%B0%D1%81%D1%82%D0%BD%D0%B8%D0%BA%D0%B0:Keegan_(WMF)&oldid=prev&diff=63662618


Version: unspecified
Severity: normal

Details

Reference
bz66674

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 3:14 AM
bzimport set Reference to bz66674.

Change 141977 had a related patch set uploaded by Esanders:
Don't try to change offset for vesection=0

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

Change 141977 merged by jenkins-bot:
Don't try to change offset for vesection=0

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