Page MenuHomePhabricator

Active Discussions module title formatting sometimes displays HTML
Closed, ResolvedPublic5 Estimated Story Points

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

This also shows up as mid-title HTML:

Screenshot 2026-03-27 at 12.41.02.png (2,274×326 px, 64 KB)

I was QAing on test.wiki and think I figured out why this happens, it seems to be when the title needs URL encoding. You can test this with the following titles:

  • Test section (displays correctly)
  • "Test" section (includes HTML)

This also shows up as mid-title HTML:

Screenshot 2026-03-27 at 12.41.02.png (2,274×326 px, 64 KB)

In this example the heading has some additional formatting via <s> tags:

Screenshot 2026-03-27 at 13.39.24.png (1,692×242 px, 58 KB)

Proposal: Extended confirmed <s>protection</s> one-year restriction for Afghanistan ethnicity-related articles

In this case I think we should either render that strikethrough in the Dashboard, or just strip it.

Confirming that adding wiki markup (in this case the title is [[Markup|markup]] section) produces a similar effect:

image.png (1,232×230 px, 35 KB)

Dillon lowered the priority of this task from High to Medium.Apr 2 2026, 4:49 PM

Change #1269410 had a related patch set uploaded (by Kgraessle; author: Kgraessle):

[mediawiki/extensions/PersonalDashboard@master] Active Discussions module title formatting sometimes displays HTML

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

Change #1269410 merged by jenkins-bot:

[mediawiki/extensions/PersonalDashboard@master] Active Discussions module title formatting sometimes displays HTML

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

It looks like the display is now good, but selecting a discussion which previously had this issue still sends you to a mangled URL:
e.g. https://en.wikipedia.org/wiki/Wikipedia:Village_pump_(idea_lab)#%3Cspan_id=%22Presumptive_deletion_for_AI-blocked_users.3F%22_typeof=%22mw:FallbackId%22%3E%3C/span%3EPresumptive_deletion_for_AI-blocked_users? instead of https://en.wikipedia.org/wiki/Wikipedia:Village_pump_(idea_lab)#Presumptive_deletion_for_AI-blocked_users?

Change #1273701 had a related patch set uploaded (by Kgraessle; author: Kgraessle):

[mediawiki/extensions/PersonalDashboard@master] Active Discussions module title formatting sometimes displays HTML

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

It looks like the display is now good, but selecting a discussion which previously had this issue still sends you to a mangled URL:
e.g. https://en.wikipedia.org/wiki/Wikipedia:Village_pump_(idea_lab)#%3Cspan_id=%22Presumptive_deletion_for_AI-blocked_users.3F%22_typeof=%22mw:FallbackId%22%3E%3C/span%3EPresumptive_deletion_for_AI-blocked_users? instead of https://en.wikipedia.org/wiki/Wikipedia:Village_pump_(idea_lab)#Presumptive_deletion_for_AI-blocked_users?

Nice catch, this will be fixed in the latest patch.

Change #1273701 merged by jenkins-bot:

[mediawiki/extensions/PersonalDashboard@master] Active Discussions module title formatting sometimes displays HTML

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

jsn.sherman moved this task from QA to Done on the Moderator-Tools-Team (Kanban) board.
jsn.sherman subscribed.

verified on testwiki