Testing the Active Discussions module on English Wikipedia today, I'm seeing raw HTML in the discussion titles of some (but not all) entries in the list:
Description
Details
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Resolved | Samwalton9-WMF | T402632 WE1.3: New moderator homepage | |||
| Resolved | Scardenasmolinar | T402781 Dashboard module: Active discussions | |||
| Resolved | • Kgraessle | T421490 Active Discussions module title formatting sometimes displays HTML |
Event Timeline
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)
In this example the heading has some additional formatting via <s> tags:
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:
Change #1269410 had a related patch set uploaded (by Kgraessle; author: Kgraessle):
[mediawiki/extensions/PersonalDashboard@master] Active Discussions module title formatting sometimes displays HTML
Change #1269410 merged by jenkins-bot:
[mediawiki/extensions/PersonalDashboard@master] Active Discussions module title formatting sometimes displays HTML
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
Change #1273701 merged by jenkins-bot:
[mediawiki/extensions/PersonalDashboard@master] Active Discussions module title formatting sometimes displays HTML



