Links in the Projects page have an incorrect redirect URL
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Summary
Links in the Projects page have an incorrect redirect URL.
Steps to reproduce
- Assume a configuration where the Gitlab instance is behind a reverse proxy path. I'm running my instance on https://myurl.com/gitlab.
- Navigate to the Projects page.
- Click on a project link. The redirect will go to https://myurl.com/someuser/someproject.
- Go back.
- Click on another link on the page, such as Admin or something from the left sidebar. You will be redirected to the correct path, https://myurl.com/gitlab/whatever you requested.
What is the current bug behavior?
The bug behavior is the incorrect URL redirect.
What is the expected correct behavior?
I would expect that the URl redirects to myurl.com/gitlab/... instead of myurl.com/...
Relevant logs and/or screenshots
Results of GitLab environment info
external_url as configured in gitlab.rb:
external_url 'https://myurl.com/gitlab/`
nginx configuration:
location /gitlab/ {
proxy_pass http://i.p.add.r:port$request_uri
// other headers
}
Possible fixes
I do not have a possible fix in mind. One thing worth noting is that even though the project URL is wrong from the Projects page, going to the project Settings -> General Settings -> Advanced -> Change path actually does show the correct URL with /gitlab/ in the path.
I believe that this also was functional until recently (within the past 1 month).
Edited by 🤖 GitLab Bot 🤖