Page MenuHomePhabricator

Avoid direct link to edit non-existing talk pages in Minerva
Open, Needs TriagePublic

Description

If the talk page doesn't exist, Minerva redirects automatically to an edit links. For instance, https://m.wikidata.org/w/index.php?title=Talk:Q21510382 redirects to https://m.wikidata.org/w/index.php?title=Talk:Q21510382&redlink=1#/editor/all.

This is a bad user experience since it hides the talkpage header. I suggest to remove this feature.

Event Timeline

Tacsipacsi added a project: DiscussionTools.
Tacsipacsi subscribed.

Clicking on that link doesn’t redirect me anywhere. Clicking on the Talk page tab on the item page does (as the link contains action=edit), but it won’t once the New Discussion Tool is introduced on mobile.

Thanks for your answer. Do you know if we could some JS script in the user page (https://m.wikidata.org/wiki/User:PAC2/minerva.js) to avoid this behaviour? Do you have more details about the calendar of the discussion tool?

$(function () {
	var talk = document.querySelector('.minerva__tab[rel="discussion"]');
	if (talk) {
		talk.href = talk.href.replace('&action=edit&redlink=1', '');
	}
}());

may work, but I didn’t test it for edge cases.

The mobile Reply Tool and New Topic Tool have just been enabled on a few Wikipedias (the so-called “partner wikis”) on last Wednesday (T282638), so I’d expect its deployment to Wikidata to be in no less than a few months, maybe even more.

Thanks. Your script seems perfect.

Esanders claimed this task.
Esanders subscribed.

DT mobile is deployed everywhere.

Tacsipacsi removed Esanders as the assignee of this task.

DT mobile is deployed everywhere.

No. For example, it’s not deployed in my private wiki. It’s probably not deployed in many other third-party wikis either. It’s one thing if you decline it, but it should not be considered resolved unless DiscussionTools becomes a hard dependency of MobileFrontend (which I very much hope won’t happen, since not all wikis need perfect discussion tools, and some may want to rather have as few extensions as possible).