Page MenuHomePhabricator

Make "Discussion" tabs of translated subpages link to the root talk page
Closed, ResolvedPublic

Description

This address the concern brought up by a volunteer, where discussion pages are "red" but actually link to the root talk page, which may have content, and thus the link shouldn't be red.

The extension does not yet hijack the link at all. Discussion tabs of translation subpages will go to i.e. Talk:Community Wishlist/Wishes/W123/fr when it should be Talk:Community Wishlist/Wishes/W123.

Yes, this does mean we have multi-lingual talk pages (not something that is truly supported), but so be it. That's better than scattering comments across dozens of translation subpages that we then have to monitor.

Acceptance criteria

  • On translation subpages of wish and focus areas, make the "Discussion" tab link to the root talk page
  • The link should be red if said page doesn't exist, blue otherwise, as one would normally expect.

Derived Requirement

Update the handling of the "Discussion" tab for translated subpages of wishes and focus areas so that:

  • Instead of linking to the subpage’s talk page (e.g., Talk:Community Wishlist/Wishes/W123/fr), it always links to the root talk page (e.g., Talk:Community Wishlist/Wishes/W123).
  • The link color follows standard MediaWiki behavior:
    • Red if the root talk page does not exist.
    • Blue if the root talk page exists.

Test Result - Beta|Prod

Status: ✅ PASS / ❓Need More Info / ❌ FAIL
Environment: beta/MetaWiki
OS: macOS Tahoe 26.0
Browser: Chrome 140
Device: MBA
Emulated Device: NA

Test Artifact(s):

Test Steps

Test Case 1: Discussion Tab Redirects to Root Talk Page

  1. Navigate to a translated subpage of a wish (e.g., Community Wishlist/Wishes/W123/fr).
  2. Click on the "Discussion" tab.
  3. ✅❓❌⬜ AC1: The tab redirects to the root talk page (e.g., Talk:Community Wishlist/Wishes/W123) instead of the subpage talk page.

Test Case 2: Discussion Tab on Focus Area Translation Subpage

  1. Navigate to a translated subpage of a focus area (e.g., Community Wishlist/Focus_areas/FA7/de).
  2. Click the "Discussion" tab.
  3. ✅❓❌⬜ AC2: The tab redirects to the root talk page of the focus area (Talk:Community Wishlist/Focus_areas/FA7).

Test Case 3: Root Talk Page Exists (Blue Link)

  1. Ensure the root talk page exists for a wish.
  2. Visit the translated subpage of that wish.
  3. ✅❓❌⬜ AC3: The "Discussion" tab appears as a blue link.

Test Case 4: Root Talk Page Does Not Exist (Red Link)

  1. Ensure the root talk page does not exist for a different wish.
  2. Visit the translated subpage of that wish.
  3. ✅❓❌⬜ AC4: The "Discussion" tab appears as a red link.

Test Case 5: Root Page Discussion Behavior Unchanged

  1. Visit the root wish page (not a translation subpage).
  2. Click the "Discussion" tab.
  3. ✅❓❌⬜ AC5: The tab continues linking to the root talk page normally without changes.

QA Results - TestWiki

Event Timeline

Triaging as High given we need this to have feature parity with the existing Wishlist system. It shouldn't be too hard, if not easier than the hacky way we did it in the gadget.

dmaza changed the task status from Open to In Progress.Aug 13 2025, 4:15 PM
dmaza claimed this task.

Change #1178964 had a related patch set uploaded (by Dmaza; author: Dmaza):

[mediawiki/extensions/CommunityRequests@master] Update discussion link on translated pages

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

Change #1178964 merged by jenkins-bot:

[mediawiki/extensions/CommunityRequests@master] Update discussion link on translated pages

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

@dmaza Confirmed "Discussion" tabs of translated subpages link to the root talk page, as seen below. I will mark this as Resolved. Thanks for all your work!

Test Result - TestWiki

Status: ✅ PASS
Environment: TestWiki
OS: macOS Tahoe 26.0
Browser: Chrome 140
Device: MBA
Emulated Device: NA

Test Artifact(s):
https://meta.wikimedia.beta.wmcloud.org/wiki/Community_Wishlist/Wishes/W5/es
https://meta.wikimedia.beta.wmcloud.org/wiki/Community_Wishlist/Focus_areas/FA8/es

Test Steps

Test Case 1: Discussion Tab Redirects to Root Talk Page

  1. Navigate to a translated subpage of a wish (e.g., Community Wishlist/Wishes/W5/es).
  2. Click on the "Discussion" tab.
  3. AC1: The tab redirects to the root talk page (e.g., Talk:Community Wishlist/Wishes/W5) instead of the subpage talk page.

Test Case 2: Discussion Tab on Focus Area Translation Subpage

  1. Navigate to a translated subpage of a focus area (e.g., Community Wishlist/Focus_areas/FA8/es).
  2. Click the "Discussion" tab.
  3. AC2: The tab redirects to the root talk page of the focus area (Talk:Community Wishlist/Focus_areas/FA8).

Test Case 3: Root Talk Page Exists (Blue Link)

  1. Ensure the root talk page exists for a wish.
  2. Visit the translated subpage of that wish.
  3. AC3: The "Discussion" tab appears as a blue link.
WishFocus

Test Case 4: Root Talk Page Does Not Exist (Red Link)

  1. Ensure the root talk page does not exist for a different wish.
  2. Visit the translated subpage of that wish.
  3. AC4: The "Discussion" tab appears as a red link.

See AC1 & AC2

Test Case 5: Root Page Discussion Behavior Unchanged

  1. Visit the root wish page (not a translation subpage).
  2. Click the "Discussion" tab.
  3. AC5: The tab continues linking to the root talk page normally without changes.

GMikesell-WMF updated Other Assignee, removed: GMikesell-WMF.
GMikesell-WMF updated the task description. (Show Details)
GMikesell-WMF updated the task description. (Show Details)
GMikesell-WMF updated the task description. (Show Details)