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
Screenshot_2025-08-06_at_4.12.37_PM Screenshot_2025-08-06_at_4.06.57_PM

Your work -> Groups

Before After
Screenshot_2025-08-06_at_4.12.56_PM Screenshot_2025-08-06_at_4.07.13_PM

Admin -> Groups

Before After
Screenshot_2025-08-06_at_4.14.01_PM Screenshot_2025-08-06_at_4.07.48_PM

Admin -> Projects

Before After
Screenshot_2025-08-06_at_4.13.27_PM Screenshot_2025-08-06_at_4.08.21_PM

How to set up and validate locally

  1. Add relative_url_root: '/gitlab' to your gdk.yml file in the gitlab-development-kit directory
  2. Run gdk reconfigure
  3. Run gdk restart
  4. Go to /gitlab/dashboard/projects. URLs should work
  5. Go to /gitlab/dashboard/groups. URLs should work
  6. Go to /admin/groups. URLs should work
  7. 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

Merge request reports

Loading