Skip to content

Commit

Permalink
use furl(...).set(origin=None) to clear out origin from URL
Browse files Browse the repository at this point in the history
  • Loading branch information
nikochiko committed Dec 18, 2024
1 parent 488fe4e commit b546824
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routers/root.py
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ def page_wrapper(request: Request, className=""):


def anonymous_login_container(request: Request, context: dict):
next_url = str(furl(request.url.path, query_params=request.query_params))
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"):
Expand Down

0 comments on commit b546824

Please sign in to comment.