Certain assets are pulled from webroot even if Gitlab is configured to not be at webroot
Summary
I have my instance configured to be located at https://example.com/gitlab
instead of webroot. However, when loading file previews, a request is made to a file at webroot.
Steps to reproduce
- Set Gitlab to be in a subpath in
gitlab.rb
withexternal_url "https://example.com/gitlab"
- Open a file preview (like https://gitlab.com/gitlab-org/omnibus-gitlab/-/blob/master/.gitlab-ci.yml)
- Check the network tab in your dev tools
What is the current bug behavior?
A request is made to https://example.com/assets/icons-stacked-a7b44806965c09abe8ed8e0e63d534479104cca9e76c3b40aeff00592237727f.svg
The Referrer header is set to https://example.com/gitlab/assets/highlight/themes/white-798c2d2c1560fb1734a7653f984135b2ce22a62aa9b46f914905648669930db1.css
.
Neither of these links change between refreshes.
What is the expected correct behavior?
The request should be made to (I assume) https://example.com/gitlab/assets/icons-stacked-a7b44806965c09abe8ed8e0e63d534479104cca9e76c3b40aeff00592237727f.svg
Relevant logs
N/A
Details of package version
16.3.4+ce.0
Environment details
- Operating System:
Ubuntu 22.04
- Installation Target, remove incorrect values:
- Docker inside VM (Contabo)
- Installation Type, remove incorrect values:
- New Installation
- Is there any other software running on the machine: not inside the container
- Is this a single or multiple node installation?
- Single
Configuration details
external_url "https://example.com/gitlab"
letsencrypt["enable"] = false
nginx["listen_https"] = false
nginx["listen_port"] = 80