On repo's downloads section, the tab switcher works incorrectly if Back or Forward keys are used

Issue #14032 open
Gabriel Marcolino
staff created an issue

Steps to reproduce: 1. Go to /downloads/ section of your repo. 2. Switch between Downloads, Tags and Branches tabs there. 3. Use back and forward navigation, either GUI buttons of a browser or Alt+respective arrow key.

Expected behaviour: Tab's content switches, selected tab's indicator switches accordingly.

Actual behaviour: Tab's content switches properly, but the active tab label does not. As a result, content doesn't match the tab.

Attached, a screenshot where the Tabs tab actually has the content from Branches tab. While admittedly this doesn't seem critical, it can potentially lead to confusion. if tags and branches have the same names, one can download a wrong archive.

Error Download.png