Page MenuHomePhabricator

Section collapsing broken in Minerva after a redirect
Closed, DuplicatePublic

Description

  1. Go to https://en.m.wikipedia.org/wiki/N%C3%A9e on a browser window large enough to be considered tablet (or desktop)
  2. Note that the page redirects to a deep link and snaps to the appropriate header, but:
    • Expected: Sections are expanded
    • Actual: Sections are collapsed
  3. Hover over a section heading:
    • Expected: Cursor becomes pointer
    • Actual: Cursor becomes text
  4. Click on a section heading, note the section expands as expected
  5. Click on the same heading:
    • Expected: Section collapses
    • Actual: Section remains expanded

A page refresh seems to restore expected behavior, implying this is probably a race condition with redirects.

Javascript errors reported in the console:

  • Exception in module-execute in module skins.minerva.scripts: TypeError: Cannot read property 'newFromText' of undefined
  • Exception in module-execute in module skins.minerva.tablet.scripts: TypeError: M.getCurrentPage is not a function