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
- Navigate to a translated subpage of a wish (e.g., Community Wishlist/Wishes/W123/fr).
- Click on the "Discussion" tab.
- ✅❓❌⬜ 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
- Navigate to a translated subpage of a focus area (e.g., Community Wishlist/Focus_areas/FA7/de).
- Click the "Discussion" tab.
- ✅❓❌⬜ 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)
- Ensure the root talk page exists for a wish.
- Visit the translated subpage of that wish.
- ✅❓❌⬜ AC3: The "Discussion" tab appears as a blue link.
Test Case 4: Root Talk Page Does Not Exist (Red Link)
- Ensure the root talk page does not exist for a different wish.
- Visit the translated subpage of that wish.
- ✅❓❌⬜ AC4: The "Discussion" tab appears as a red link.
Test Case 5: Root Page Discussion Behavior Unchanged
- Visit the root wish page (not a translation subpage).
- Click the "Discussion" tab.
- ✅❓❌⬜ AC5: The tab continues linking to the root talk page normally without changes.
QA Results - TestWiki
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T401639#11217129 |
| 2 | ✅ | T401639#11217129 |
| 3 | ✅ | T401639#11217129 |
| 4 | ✅ | T401639#11217129 |
| 5 | ✅ | T401639#11217129 |