From 1e51ef89dcf0647d9b50285ba643ba71641a2cde Mon Sep 17 00:00:00 2001 From: Timon Engelke Date: Thu, 25 Jan 2024 16:45:14 +0100 Subject: [PATCH] Keep query string for login/logout to fix ?next= --- bitpoll/urls.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bitpoll/urls.py b/bitpoll/urls.py index 40f65c8..9b39412 100644 --- a/bitpoll/urls.py +++ b/bitpoll/urls.py @@ -41,8 +41,8 @@ if settings.OPENID_ENABLED: urlpatterns += [ path("auth/openid/", include("simple_openid_connect.integrations.django.urls")), - path("login/", RedirectView.as_view(url="/auth/openid/login/"), name="login"), - path("logout/", RedirectView.as_view(url="/auth/openid/logout/"), name="logout"), + path("login/", RedirectView.as_view(url="/auth/openid/login/", query_string=True), name="login"), + path("logout/", RedirectView.as_view(url="/auth/openid/logout/", query_string=True), name="logout"), ] else: urlpatterns += [