Skip to content

Commit

Permalink
fix next URL on tapping 'Sign In' - should include query params
Browse files Browse the repository at this point in the history
  • Loading branch information
nikochiko committed Dec 17, 2024
1 parent 0a0789b commit 337ae2c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion routers/root.py
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,8 @@ def page_wrapper(request: Request, className=""):


def anonymous_login_container(request: Request, context: dict):
login_url = str(furl("/login/", query_params=dict(next=request.url.path)))
next_url = str(furl(request.url.path).add(query_params=request.query_params))
login_url = str(furl("/login/", query_params=dict(next=next_url)))

with gui.tag("a", href=login_url, className="pe-2 d-none d-lg-block"):
gui.html("Sign In")
Expand Down

0 comments on commit 337ae2c

Please sign in to comment.