Page MenuHomePhabricator

Reference pop-ups for refs containing only an automatically numbered external link are empty
Closed, ResolvedPublicBUG REPORT

Description

Steps to reproduce

  1. Navigate to a page with wikitext like this (minimal example at testwiki:Ref with external link bug test):
<ref>[https://example.org]</ref>
  1. Tap on the reference to trigger the reference pop-up.

Expected results

The pop-up should contain a link to https://example.org with the link text "[1]".

Actual results

The pop-up is empty.

Environments observed

App version: 2.7.50362-r-2021-06-04
Android OS versions: 9 (EMUI 9.1.0.178(C432E5R1P1))
Device model: Huawei Honor 7x (BND-721)
Device language: German

Event Timeline

@LGoto, is this still an issue? Could we get a screenshot showing the problem?

Seems to work on desktop, and in the mobile web browser on Android. Might still be an issue in the Android app, but this ticket is over a year old. Is it still reproducible?

(I recall there's some way to get the android app to point to testwiki, but I can't remember how...)

Hello, I'm a little unsure about the expected result. It appears to be working for me. Here is what I see:
Android App

Screenshot_20221024-084450.png (2×1 px, 150 KB)

Mobile Web

Screen Shot 2022-10-24 at 8.48.18 AM.png (1×2 px, 580 KB)

@LGoto and/or @cscott does this appear correct?

The payload from the reference:

{"selectedIndex":0,"referencesGroup":[{"id":"cite_ref-1","rect":{"top":169.78125,"right":28.45833396911621,"bottom":183.1145839691162,"left":16,"width":12.458333969116211,"height":13.333333969116211,"x":16,"y":169.78125},"text":"[1]","html":"<a rel=\"mw:ExtLink\" href=\"http://example.org\" class=\"external autonumber\"></a>","href":"./Ref_with_external_link_bug_test#cite_note-1"}],"href":"./Ref_with_external_link_bug_test#cite_note-1"}

We use the content in the html, which the <a> tag does not have a text in <a></a> and that causes the empty content in the reference bottom sheet.