Page MenuHomePhabricator

Additional tabs in vector-menu-content-list's ca-nstab get displayed/hidden in the "More" dropdown in Vector 2022
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?: The Txikipedia tab that was added just right of the Talk tab has been removed and added to the "More" tab.

What should have happened instead?: It should be on the same place, as children visit this and know where the tab is.

Software version (skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Event Timeline

The opposite also happens. When you are in an article in Txikipedia, the links to the main tab disappear. When you are in the Citations tab, the main tab disappear: https://en.wiktionary.org/wiki/Citations:planet

It did not completely disappear as you wrote yourself...

Seems like the relevant code is https://eu.wikipedia.org/wiki/MediaWiki:Gadget-TxikipediaTab.js per https://eu.wikipedia.org/wiki/MediaWiki:Gadgets-definition .
(As I was first looking at https://eu.wikipedia.org/wiki/MediaWiki:Common.js#L-653 as I found that while looking at T189459, not sure that code is still used?)

I first had to enable Gadget honek fitxa berri bat gehitzen du Txikipediara loturak jarri ahal izateko. on https://eu.wikipedia.org/wiki/Berezi:Hobespenak#mw-prefsection-gadgets (please always include full steps to reproduce).

After that I could find the additional tab under More on https://eu.wikipedia.org/wiki/Klima_aldaketa?uselang=en&useskin=vector-2022&usedebug=true .
While it's displayed as a third tab https://eu.wikipedia.org/wiki/Klima_aldaketa?useskin=vector&uselang=en&usedebug=true

Aklapper renamed this task from Txikipedia app has disappeared from euwiki to Additional tabs in vector-menu-content-list's ca-nstab get displayed/hidden in the "More" dropdown in Vector 2022.Sep 10 2022, 1:34 PM
Theklan claimed this task.
Theklan added a subscriber: jhsoby.

@jhsoby introduced some changes in the code, mainly changing lines 65 and 102 to

var portlet = document.getElementById('p-namespaces') || document.getElementById('p-associated-pages') || document.getElementById('p-cactions');

and now is solved.