From 511123763c79c6794cc04f7f9ba2ae3c92590648 Mon Sep 17 00:00:00 2001 From: Rick Elrod Date: Mon, 14 Oct 2024 17:50:50 +0200 Subject: [PATCH] There's no /login/ Signed-off-by: Rick Elrod --- awx/api/generics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/api/generics.py b/awx/api/generics.py index 5c6f03e11b0f..99427a1ba255 100644 --- a/awx/api/generics.py +++ b/awx/api/generics.py @@ -86,7 +86,7 @@ def get(self, request, *args, **kwargs): next = request.GET.get('next', "") if next: next = f"?next={next}" - return redirect(f"/login{next}") + return redirect(f"/{next}") # The django.auth.contrib login form doesn't perform the content # negotiation we've come to expect from DRF; add in code to catch