Fix: Redirect when visit operations page without login
What does this MR do and why?
Issue: #2498 (closed) | Environment: SaaS
A few days ago we introduced a new feature in MR!1459: when the user is not logged in, some pages should jump to https://www.jihulab.com
instead of the login page. But we should handle more pages.
Currently MR supports more pages to jump to the home page:
- /operations & /operations/environments
- /security/dashboard
- /dashboard/* (eg: /dashboard/projects)
Screenshots or screen recordings
No UI changes.
How to set up and validate locally
-
Launch gitlab as SaaS
$ export GITLAB_SIMULATE_SAAS=1 $ gdk start
-
Set homepage url to
https://www.jihulab.com
in Admin > Settings > General -
Log out of the currently logged in user
-
Try visiting: these pages
👇 . Expect to redirect tohttps://www.jihulab.com
由 路志远 编辑于