Fix group and project Vue apps when using relative_url_root
What does this MR do and why?
Related to #556264 (closed) and #556582 (closed)
In !196877 (merged) we were trying to fix some issues that customers were having around absoulte URLs by switching to relative URLs. This unfortunately caused a new issue when using the relative_url_root setting.
This MR fixes the issue in the following places:
Bug in released %18.2
- Your work -> Projects
Unreleased or still behind feature flags
- Your work -> Groups
- Admin -> Groups
- Admin -> Projects
References
Screenshots or screen recordings
Your work -> Projects
| Before | After |
|---|---|
![]() |
![]() |
Your work -> Groups
| Before | After |
|---|---|
![]() |
![]() |
Admin -> Groups
| Before | After |
|---|---|
![]() |
![]() |
Admin -> Projects
| Before | After |
|---|---|
![]() |
![]() |
How to set up and validate locally
- Add
relative_url_root: '/gitlab'to yourgdk.ymlfile in thegitlab-development-kitdirectory - Run
gdk reconfigure - Run
gdk restart - Go to
/gitlab/dashboard/projects. URLs should work - Go to
/gitlab/dashboard/groups. URLs should work - Go to
/admin/groups. URLs should work - Go to
/admin/projects. URLs should work
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Peter Hegman







