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()
|
db.session.commit()
|
||||||
session["id"] = user.id
|
session["id"] = user.id
|
||||||
session.permanent = True
|
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 redirect("/")
|
||||||
|
|
||||||
return jsonify({"success": False, "error": "Domain not found"})
|
return jsonify({"success": False, "error": "Domain not found"})
|
||||||
|
@ -213,7 +213,7 @@
|
|||||||
<script>
|
<script>
|
||||||
function HNSIDLoginSelect() {
|
function HNSIDLoginSelect() {
|
||||||
var selectedNFT = document.getElementById("nftDropdown").value;
|
var selectedNFT = document.getElementById("nftDropdown").value;
|
||||||
window.location.href = "/hnsid/" + selectedNFT;
|
window.location.href = "/hnsid/" + selectedNFT + window.location.search;
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user