Skip to content

Commit

Permalink
fix: Redirect on login rather than just swap content (#413)
Browse files Browse the repository at this point in the history
Signed-off-by: Trey <[email protected]>
  • Loading branch information
TreyWW committed Jun 13, 2024
1 parent 1a4a6f2 commit 68d4d32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/views/core/auth/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ def login_manual(request: HtmxAnyHttpRequest): # HTMX POST

try:
resolve(next)
response["HX-Location"] = next
response["HX-Redirect"] = next
except Resolver404:
response["HX-Location"] = "/dashboard/"
response["HX-Redirect"] = "/dashboard/"

return response

Expand Down

0 comments on commit 68d4d32

Please sign in to comment.