Skip to content

Commit

Permalink
Keep query string for login/logout to fix ?next=
Browse files Browse the repository at this point in the history
  • Loading branch information
timonegk committed Jan 25, 2024
1 parent fbfb75e commit 1e51ef8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bitpoll/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 += [
Expand Down

0 comments on commit 1e51ef8

Please sign in to comment.