Page MenuHomePhabricator

Create a unique anchor for each of identical section names on page
Open, LowPublic

Description

There are pages of polls or discussions that have several identical sections. It is very difficult to get to the right one by clicking on the link in the watchlist.
For example: https://www.mediawiki.org/wiki/Project:Proposal_for_changing_logo_of_MediaWiki,_2020

We need to come up with a way to get to the desired section through a link in the watchlist.

Event Timeline

Iniquity renamed this task from Create an uniqual anchor for every same section per page to Create an uniqual anchor for every identical sections name on page.Jun 24 2020, 10:13 PM
Iniquity created this task.
Jack_who_built_the_house renamed this task from Create an uniqual anchor for every identical sections name on page to Create an unique anchor for each of identical section names on page.Jun 28 2020, 2:40 PM

One could think that this is not CD's concern, but why not? A probable solution would be adding a standard CD timestamp_username identifier to the section link, say, after _, and have the script search for the section that includes the comment matching that ID, and jumping to that section.

A probable issue with this would be that altering the link would render it dysfunctional until CD is loaded and executed. And most of section names are not duplicated on the page. So, we better come up with a different solution. I don't know how adding two fragments to a page is possible, but we could add a query parameter, so the URL would be like this: https://ru.wikipedia.org/wiki/Википедия:Форум/Общий?cdComment=timestamp_username#Итог. ?cdComment=timestamp_username may later be removed from the URL without trace to have it clean.

Jack_who_built_the_house renamed this task from Create an unique anchor for each of identical section names on page to Create a unique anchor for each of identical section names on page.Jul 28 2020, 5:05 AM