Skip to content

Commit

Permalink
Merge pull request #567 from GooeyAI/fix-next-url-on-signin
Browse files Browse the repository at this point in the history
fix next URL on tapping 'Sign In' - should include query params
  • Loading branch information
nikochiko authored Dec 18, 2024
2 parents f814a30 + b546824 commit 0a26cd7
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).set(origin=None))
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 0a26cd7

Please sign in to comment.