Page MenuHomePhabricator

Redirecting to a title with a fragment should automatically scroll to the fragment
Closed, ResolvedPublic

Description

Description

Consider the following scenario:
There is a page with multiple sections and another page, that is a redirect to that page including a specific section in the target page. Now a third page links to the second page (which is a redirect to the third page). Now a user clicks the link in the first page.

This bug was spotted on a derivative project and there is a fix for it: http://gerrit.go2tech.de/795

Steps to reproduce

  1. (I don't know, how long this page is there with this content, but you can test the behavior with https://test.wikipedia.org/wiki/Test clicking the link TestFragment2)
  2. Create a page with multiple sections
  3. Create a second page which is a redirect to the first page (including a section, so add a fragment to the redirect "#Fragment")
  4. Create a third page and add a link to the second page
  5. Click the link in the third page

Expected results

If a user clicks the third page, he should be redirected to the target page and the app should automatically scroll to the fragment (like the browser does, too).

Actual results

The page is loaded without to scroll to the target section.

Environments observed

App version: 5.0.1, doesn't matter
Android OS versions: latest master, doesn't matter
Device model: HTC One M 9 (& emulator), but doesn't matter
Device language: en/de (doesn't matter)

Event Timeline

Florian claimed this task.
Florian raised the priority of this task from to Needs Triage.
Florian updated the task description. (Show Details)
Florian subscribed.

Change 232860 had a related patch set uploaded (by Florianschmidtwelzow):
Scroll to a fragment on a redirected title

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

Change 232860 merged by jenkins-bot:
Scroll to an URL-Fragment of a redirected title

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