From 476a288f325fb999a142aa391fdbd51fd265b3b2 Mon Sep 17 00:00:00 2001 From: ibuler Date: Tue, 22 Jun 2021 11:10:41 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BF=AE=E5=A4=8Dnext=E4=B8=BA?= =?UTF-8?q?=E7=A9=BA=E5=8F=AF=E8=83=BD=E4=BC=9A=E5=AF=BC=E8=87=B4=E7=9A=84?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/authentication/views/login.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/authentication/views/login.py b/apps/authentication/views/login.py index 15cb68319..0aa9f90b5 100644 --- a/apps/authentication/views/login.py +++ b/apps/authentication/views/login.py @@ -44,7 +44,7 @@ class UserLoginView(mixins.AuthMixin, FormView): # show jumpserver login page if request http://{JUMP-SERVER}/?admin=1 if self.request.GET.get("admin", 0): return None - next_url = request.GET.get('next') or '' + next_url = request.GET.get('next') or '/' auth_type = '' auth_url = '' if settings.AUTH_OPENID: