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
How to set up and validate locally
-
Add
relative_url_root: '/gitlab'to yourgdk.yml. -
Run
gdk reconfigure. -
Run
gdk restart. -
Navigate to the homepage at https://gdk.test:3443/gitlab.
-
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
