fix: Next path gets lost after selecting hns.id domain
All checks were successful
Build Docker / Build Docker (push) Successful in 30s
All checks were successful
Build Docker / Build Docker (push) Successful in 30s
This commit is contained in:
parent
17d01b0cc6
commit
ab3ab6d7c4
@ -124,6 +124,12 @@ def hnsid_domain(domain):
|
||||
db.session.commit()
|
||||
session["id"] = user.id
|
||||
session.permanent = True
|
||||
|
||||
# Check if next page is specified
|
||||
next_page = request.args.get("next")
|
||||
if next_page:
|
||||
return redirect(next_page)
|
||||
|
||||
return redirect("/")
|
||||
|
||||
return jsonify({"success": False, "error": "Domain not found"})
|
||||
|
@ -213,7 +213,7 @@
|
||||
<script>
|
||||
function HNSIDLoginSelect() {
|
||||
var selectedNFT = document.getElementById("nftDropdown").value;
|
||||
window.location.href = "/hnsid/" + selectedNFT;
|
||||
window.location.href = "/hnsid/" + selectedNFT + window.location.search;
|
||||
}
|
||||
</script>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user