Skip to content

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:

  1. /operations & /operations/environments
  2. /security/dashboard
  3. /dashboard/* (eg: /dashboard/projects)

Screenshots or screen recordings

No UI changes.

How to set up and validate locally

  1. Launch gitlab as SaaS

    $ export GITLAB_SIMULATE_SAAS=1
    $ gdk start
  2. Set homepage url to https://www.jihulab.com in Admin > Settings > General

  3. Log out of the currently logged in user

  4. Try visiting: these pages 👇. Expect to redirect to https://www.jihulab.com

路志远 编辑于

合并请求报告

加载中