Page MenuHomePhabricator

Parsoid mobile views do not expand sections when following hash fragment links
Closed, ResolvedPublic3 Estimated Story PointsBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:

  • In legacy parser: the Breda_McQueen section is expanded
  • In Parsoid: the Breda_McQueen section is NOT expanded

What should have happened instead?:

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Event Timeline

Jdlrobson-WMF renamed this task from Parsoid mobile views do not expand sections when following to Parsoid mobile views do not expand sections when following hash fragment links.Feb 2 2026, 10:24 PM
egardner set the point value for this task to 3.Wed, Feb 4, 6:12 PM

Change #1236838 had a related patch set uploaded (by Eric Gardner; author: Eric Gardner):

[mediawiki/extensions/MobileFrontend@master] SectionCollapsing: Auto-expand sections based on hash fragments

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

Test wiki created on Patch demo by EGardner (WMF) using patch(es) linked to this task:
https://d026251709.catalyst.wmcloud.org/w/

There is still room for improvement with the subheadings
e.g. http://localhost:8888/w/index.php?title=List_of_Hollyoaks_characters_introduced_in_2018&useparsoid=1#Storylines / https://d026251709.catalyst.wmcloud.org/w/index.php?title=List_of_Hollyoaks_characters_introduced_in_2018#Storylines )

That said I don't think we should spend more time on this until we are clearer about the future of section collapsing by default in Parsoid. The experience is on par with legacy and I'd suggest we can create a follow up ticket to smoothen the experience for sub sections and revisit that later.

The importance thing is sections /are/ displayed now.

Change #1236838 merged by jenkins-bot:

[mediawiki/extensions/MobileFrontend@master] SectionCollapsing: Auto-expand sections based on hash fragments

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