Page MenuHomePhabricator

Link to a specific section of a page doesn't show previous sections
Closed, ResolvedPublic

Assigned To
Authored By
Kaartic
Oct 11 2016, 10:07 AM
Referenced Files
F4602748: Screenshot_2016-10-14-16-02-00.png
Oct 14 2016, 10:40 AM
F4602753: Screenshot_2016-10-14-16-02-39.png
Oct 14 2016, 10:40 AM
F4602743: Screenshot_2016-10-14-15-45-42.png
Oct 14 2016, 10:30 AM
F4602715: Screenshot_2016-10-14-15-44-03.png
Oct 14 2016, 10:30 AM
F4584409: Screenshot_2016-10-11-15-03-59.png
Oct 11 2016, 10:07 AM
F4584406: Screenshot_2016-10-11-15-03-30.png
Oct 11 2016, 10:07 AM

Description

In Wikipedia Beta app version 2.4.157-beta the links that point to specific sections of a page doesn't seem to load the sections that are found above it.

Steps to reproduce

  1. Open the Wikipedia Beta app
  2. Load the "Web 2.0" article.
  3. Click the link to "Web 1.0" in the main section of the article (below the image about Web 2.0) - It's a link to the history section of the same article
  4. Click "Read article" in preview (the preview displays nothing)

Actual Behaviour
The section is displayed but the portions of the article between title and the section are not displayed.

Screenshot_2016-10-11-15-03-30.png (800×480 px, 107 KB)

Expected Behaviour
The full article is loaded and the specific section is displayed.

The full article is visible when reloaded.

Screenshot showing article after reload:

Screenshot_2016-10-11-15-03-59.png (800×480 px, 131 KB)

Event Timeline

I think of opening a New task for making the links to particular sections of the same article to scroll to that section of the article instead of opening a new page of the same article to display that section.

This doesn't seem to be the case with all the links. I recently tried to open the article on Lexical scoping which is actually a redirect link to the Lexical scope section of the the Scope article. It seems to work fine. I have attached screen shot of the section and the top of the article being displayed after I loaded the article using the redirect link.

Screen shot showing the section and text above it that has loaded

Screenshot_2016-10-14-15-44-03.png (800×480 px, 99 KB)

Screen shot showing the main section of article

Screenshot_2016-10-14-15-45-42.png (800×480 px, 89 KB)

I also find it weird that when I search for "Lexical scoping" in the search bar, I get the result as shown in the screen shot below:

Screenshot_2016-10-14-16-02-00.png (800×480 px, 43 KB)

Notice that message Redirected from Lexical scoping shown below the first result.

When I search for "Web 1.0" in the search bar, I get the result as shown in the below screen shot:

Screenshot_2016-10-14-16-02-39.png (800×480 px, 45 KB)

It's clear that there is no message about the redirection and although a redirect page exists for Web 1.0 it only shows Web 2.0 as the first result. That seems weird, doesn't it.

What could be the reason behind this ?

This bug may not be reproducable now after I edited the redirect link of "Web 1.0" to change it from

#REDIRECT [[Web 2.0#"Web 1.0"]]

to

#REDIRECT [[Web 2.0#Web 1.0]]

I did this after I changed that section's title from "Web 1.0" to Web 1.0.

I don't know why, but when you click that link I specified in the 3rd step now the app loads only the article and shows the main section instead of navigating to that section. The browser seems to be correctly navigating to that section though.

I also tried changing the redirection link to #REDIRECT [[Web_2.0#Web_1.0]] to test if works at least with that underscore but, it also had no effect. That edit has now been reverted by a person as unconstructive.

Why doesn't the app recognise that redirection link correctly ?

Anybody has any ideas regarding this weirdness ?

This points towards an issue in the backend content service that we use to fetch page contents. I created T148645 to account for this.

This example seems to be behaving properly in the current version of the app, for me (even though it's currently back to "Web 1.0" with the quote marks). I go directly to the correct section when I tap the 1.0 link, without any missing content that I notice.

However, on another page that instead uses the {{anchor}} template for the target, it does not work at all. It's not clear to me whether this is the same issue and caused by the backend content service one, or something different, so I'll open a new task. But this one is maybe resolved?

This example seems to be behaving properly in the current version of the app, for me (even though it's currently back to "Web 1.0" with the quote marks). I go directly to the correct section when I tap the 1.0 link, without any missing content that I notice.

However, on another page that instead uses the {{anchor}} template for the target, it does not work at all. It's not clear to me whether this is the same issue and caused by the backend content service one, or something different, so I'll open a new task. But this one is maybe resolved?

This seemed to be working for you as I had changed that into an internal link in April 2017.

Anyways, this issue seems to be a little worser nowadays. T184824: Redirect link to a specific section of a page just loads that page

Dbrant claimed this task.