Skip to content

Fix preferences link in personal homepage banner

What does this MR do and why?

This fixes the preferences link that gets rendered in the personal homepage's promo banner. It could previously be broken due to being hardcoded client-side. We now build it server-side to ensure it honors the relative_url_root instance setting.

References

Screenshots or screen recordings

Screenshot_2025-11-12_at_10.23.32_AM

How to set up and validate locally

  1. Add relative_url_root: '/gitlab' to your gdk.yml.

  2. Run gdk reconfigure.

  3. Run gdk restart.

  4. Navigate to the homepage at https://gdk.test:3443/gitlab.

  5. If you had previously dismissed the banner, you can force it to show up again by deleting the associated callouts from the DB, eg:

    rails c
    > Users::Callout.where(feature_name: 'personal_homepage_preferences_banner').delete_all

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 Paul Gascou-Vaillancourt

Merge request reports

Loading