Designs tab leads to Discussion view when opened in new tab/window

Summary

On an Issue, clicking the "Designs" tab opens the "Designs" view as expected. However, none of these do:

  • "Open Link in New Tab"
  • "Open Link in New Window"
  • "Copy Link Address" then going to the copied URL

The 3 approaches above result in the default "Discussions" view loading - not the "Designs" view.

Steps to reproduce

  1. On this page, scroll down to the "Designs" tab
  2. Right-click the "Designs" tab and choose "Open Link in New Tab" (or equivalent)
  3. Notice that the "Designs" view is not displayed (the "Discussion" view is)

What is the current bug behavior?

The "Designs" tab is not displayed when you navigate to the URL of the "Designs" tab link.

What is the expected correct behavior?

The "Designs" tab is displayed when you navigate to the URL of the "Designs" tab link.

Relevant logs and/or screenshots

Screen_Shot_2020-03-30_at_3.22.42_PM

Output of checks

This bug happens on GitLab.com

Possible fixes

JS should detect the appropriate tab to display at page load, based on the #designs-tab anchor instruction in the URL.

Edited by Dan Jensen