Don't show the /archives link in the version dropdown if the domain is archives.docs.gitlab.com
Description
In !3174 (merged), we updated the dropdown to not show the unrelated versions when the site is deployed in archives.docs.gitlab.com
. With that implementation, the archives link points to archives.docs.gitlab.com/archives
which doesn't exist.
We actually need to not show the /archives
link in the version dropdown if the domain is archives.docs.gitlab.com
.
Steps to reproduce
- Visit https://archives.docs.gitlab.com/15.7/
- Hover over the version in the upper right.
- If you click on the Archives, you get a 404.
Actual result
The archives link is pointing to a nonexistent page.
Expected result
The archives link should work. We have a few options.
- Hide the archives link when the domain is
archives.docs.gitlab.com
- Redirect to the home page of
archives.docs.gitlab.com
- Redirect to https://docs.gitlab.com/archives/
I prefer the first option.
Edited by Achilleas Pipinellis