Page MenuHomePhabricator

Add backlink to Wishes and Focus Areas pages from individual entities' pages
Closed, ResolvedPublic

Assigned To
Authored By
Samwilson
Oct 2 2025, 2:05 AM
Referenced Files
F66747915: 2025-10-13_08-58-03.png
Oct 13 2025, 4:19 PM
F66747913: 2025-10-13_08-57-29.png
Oct 13 2025, 4:19 PM
F66747904: 2025-10-13_08-54-22.mp4.gif
Oct 13 2025, 4:19 PM
F66747898: 2025-10-13_08-48-35.mp4.gif
Oct 13 2025, 4:19 PM
F66747910: 2025-10-13_08-56-10.png
Oct 13 2025, 4:19 PM
F66747908: 2025-10-13_08-56-54.png
Oct 13 2025, 4:19 PM
F66747902: 2025-10-13_08-55-22.mp4.gif
Oct 13 2025, 4:19 PM
F66747895: 2025-10-13_08-53-10.mp4.gif
Oct 13 2025, 4:19 PM

Description

Now there's no bread crumb showing e.g. < Community Wishlist | Focus areas there's no quick way to get back to the full focus area list from an individual focus area. Similarly for wishes.

We should add a link somewhere near the top so it's possible to go easily to the relevant full list.


Derived Requirement

Add a visible backlink near the top of individual Wish and Focus Area pages that allows users to easily navigate back to their respective index pages.

  • On a Wish page, display a backlink to the full Wishes list (e.g., “View all Wishes”).
  • On a Focus Area page, display a backlink to the Focus Areas list (e.g., “View all Focus Areas”). This enhancement ensures easier navigation and improves usability by reducing the need to manually return to index pages.
Test Steps

Test Case 1: Verify backlink appears on individual Wish pages

  1. Navigate to any individual Wish page (e.g., /Community_Wishlist/Wishes/W5).
  2. Observe the top of the page content.
  3. ✅❓❌⬜ AC1: Confirm that a backlink (e.g., “← View all wishes”) is visible and positioned near the top of the page and redirects to the main Wishes index page (e.g., /Community_Wishlist/Wishes).

Test Case 2: Verify backlink appears on individual Focus Area pages

  1. Navigate to any individual Focus Area page (e.g., /Community_Wishlist/Focus_areas/FA12).
  2. Observe the top of the page content.
  3. ✅❓❌⬜ AC2: Confirm that a backlink (e.g., “← View all Focus Areas”) is visible and properly placed near the top of the page and redirected to the Focus Areas index page (e.g., /Community_Wishlist/Focus_areas).

QA Results - Meta Beta

ACStatusDetails
1T406189#11269231
2T406189#11269231

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Samwilson renamed this task from Add backlink to Focus Areas page from individual FAs to Add backlink to Wishes and Focus Areas pages from individual entities' pages.Oct 3 2025, 4:38 AM
Samwilson updated the task description. (Show Details)

Change #1193307 had a related patch set uploaded (by Samwilson; author: Samwilson):

[mediawiki/extensions/CommunityRequests@master] Add subpage breadcrumb for entity index pages

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

A proof of concept, re-using the "View all x" messages (which might not be the best idea).

image.png (225×795 px, 34 KB)

I also filed T406071. I haven't written any code for CommunityRequests yet, because… Unfortunately, I think we have to add a hook to Extension:Translate that allows us to intercept their SkinSubPageSubtitle handler, since it returns false and Translate is loaded before CommunityRequests. I have some code already written for Ext:Translate that I can submit, but I'm not sure how the maintainers feel with us adding all these hooks (the other one being for T401874). I was going to have the new hook simply return the HTML that Translate generates, which is just the same links that are already there but prefixed with Special:MyLanguage/.

Unless we know of another way to do it? Maybe we could put the links in the parser output, and use CSS to hide the subpage subtitle (aka breadcrumbs) and position our links there. Nasty, but it's so darn tempting to put the index page link there!

You're right, it would be nice to put the index page link there, but the more I think about it the more it feels a bit odd. Mainly because we're not linking to a parent subpage. This might matter elsewhere too, such as when we're viewing the Votes subpage — would we also include the extra new level of subpage?

I did wonder if we could add a new hook to core that would run before SkinSubPageSubtitle and be supplied with an already-exploded array of subpage link structures that it could modify as it wants. Then Translate wouldn't have to re-do lots of what's already done in core. But are there other things that want to use that? I'm not sure.

For now we could just add the index page links above the description. That looks fine I think and is much simpler!

Change #1193307 merged by jenkins-bot:

[mediawiki/extensions/CommunityRequests@master] Add link to entity index pages at top of entity pages

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

@Samwilson Confirmed a visible backlink near the top of individual Wish and Focus Area pages that allows users to easily navigate back to their respective index pages, as seen in the GIFs/screenshots below. I will mark this as Resolved. Thanks for all your work!

Test Result - Meta Beta

Status: ✅ PASS
Environment: Meta Beta
OS: macOS Tahoe 26.0.1
Browser: Chrome 140
Device: MBA
Emulated Device: NA

Test Artifact(s):

Test Steps

Test Case 1: Verify backlink appears on individual Wish pages

  1. Navigate to any individual Wish page (e.g., /Community_Wishlist/Wishes/W5).
  2. Observe the top of the page content.
  3. AC1: Confirm that a backlink (e.g., “← View all wishes”) is visible and positioned near the top of the page and redirects to the main Wishes index page (e.g., /Community_Wishlist/Wishes).
VectorMinervaMonobookTimeless
2025-10-13_08-53-10.mp4.gif (844×1 px, 1 MB)
2025-10-13_08-55-22.mp4.gif (784×606 px, 806 KB)
2025-10-13_08-56-54.png (509×1 px, 122 KB)
2025-10-13_08-56-10.png (657×1 px, 115 KB)

Test Case 2: Verify backlink appears on individual Focus Area pages

  1. Navigate to any individual Focus Area page (e.g., /Community_Wishlist/Focus_areas/FA12).
  2. Observe the top of the page content.
  3. AC2: Confirm that a backlink (e.g., “← View all Focus Areas”) is visible and properly placed near the top of the page and redirected to the Focus Areas index page (e.g., /Community_Wishlist/Focus_areas).
VectorMinervaMonobookTimeless
2025-10-13_08-48-35.mp4.gif (848×1 px, 1 MB)
2025-10-13_08-54-22.mp4.gif (798×534 px, 594 KB)
2025-10-13_08-57-29.png (484×863 px, 121 KB)
2025-10-13_08-58-03.png (645×1 px, 118 KB)
GMikesell-WMF updated Other Assignee, removed: GMikesell-WMF.
GMikesell-WMF updated the task description. (Show Details)