The link to the `latest` documentation on archive.docs.gitlab.com points back to archive.docs.gitlab.com.

When navigating to a page on the archived docs. (For example, https://archives.docs.gitlab.com/15.11/ee/user/application_security/sast/) we are presented with a banner at the top:

Screenshot image

Notice that the link to the latest version is to the archives.docs.gitlab.com domain. Because of this, we end up navigating to a 404 page. The link should be to docs.gitlab.com.

Possible fixes

I believe the code under https://gitlab.com/gitlab-org/gitlab-docs/-/blob/ae6a1fefa423f18d54c30e919d084538e309979e/content/frontend/default/default.js#L20-35 should be updated to point to the correct domain for the link to latest documentation.