Page MenuHomePhabricator

"Add topic" button gets duplicated when previewing and saving in mobile DiscussionTools
Closed, ResolvedPublic

Description

"Add topic" button gets duplicated when previewing and saving in mobile DiscussionTools.

Kindly check https://photos.app.goo.gl/CUQpULgCMrcUmLuU9 (Android) and https://photos.app.goo.gl/9kos7kjvG6B8mVWdA (iOS) out, something funky is up.

context: Testing for Discussion tools on https://en.wikipedia.beta.wmflabs.org/wiki/User_talk:TestUserEsther

For clarity, the funky behaviour isn't an enwiki beta thing, it's a DT thing from observation.

Event Timeline

Change 858618 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/extensions/DiscussionTools@master] Use 'BeforePageDisplay' instead of 'OutputPageBeforeHTML' for once-per-page things

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

This turns out to be the same problem as T316175#8405061 and T323376, and my patch for those issues works to fix it.

Change 858618 merged by jenkins-bot:

[mediawiki/extensions/DiscussionTools@master] Use 'BeforePageDisplay' instead of 'OutputPageBeforeHTML' for once-per-page things

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

✅ "Add topic" button isn't duplicated when previewing and saving in mobile DiscussionTools
https://photos.app.goo.gl/HhELCdNEhkiY25uR7