`version_check.json` not found if hosting GitLab under a subdirectory
Summary
The request for version_check.json
returns 404 on instances hosted under a subdirectory.
It might be related to #351161 (closed), caused by !77521 (merged) fixed in !79258 (merged).
Steps to reproduce
- Set up a GitLab instance hosted under subdirectory.
- Open the admin dashboard.
What is the current bug behavior?
The version check script always requests https://example.com/admin/version_check.json even though, the external_url
is set to, e.g., https://example.com/gitlab .
What is the expected correct behavior?
The request for version_check.json
should respect the external_url
setting.
Results of GitLab environment info
Expand for output related to GitLab environment info
System information System: Current User: git Using RVM: no Ruby Version: 2.7.5p203 Gem Version: 3.1.4 Bundler Version:2.1.4 Rake Version: 13.0.6 Redis Version: 6.2.6 Sidekiq Version:6.4.0 Go Version: unknown GitLab information Version: 14.8.2 Revision: c7be43f6dd3 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: PostgreSQL DB Version: 12.7 ... Using LDAP: no Using Omniauth: yes Omniauth Providers: GitLab Shell Version: 13.23.2 Repository storage paths: - default: /var/opt/gitlab/git-data/repositories GitLab Shell path: /opt/gitlab/embedded/service/gitlab-shell
Results of GitLab application Check
Everything is green.
Edited by Stanley F.