Add `/-/external_redirect` endpoint
What does this MR do and why?
This MR adds a /-/external_redirect
endpoint to handle situations where we want to show the user the URL they are about to visit when leaving GitLab.
Screenshots or screen recordings
Demo with Mastodon link
How to set up and validate locally
To just generally test the endpoint:
- Start GDK
- Visit
/-/external_redirect?url=https%3A%2F%2Fgoogle.com
To test the endpoint with user's mastodon social:
- Enable
mastodon_social_ui
feature flagFeature.enable(:mastodon_social_ui)
- Sign in to GDK as
root
- Visit
/-/profile
and set Mastodon: to@root@mastodon.social
. Click Update profile settings. - Visit user's page
/root
and click Mastodon icon.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
References
- Relates to #428446 (closed)
Thanks
Thanks @leetickett-gitlab @a_luna @jannik_lehmann && @cwoolley-gitlab for pairing on this with me
Edited by Paul Slaughter