fix: Next path gets lost after selecting hns.id domain
All checks were successful
Build Docker / Build Docker (push) Successful in 30s

This commit is contained in:
Nathan Woodburn 2024-06-14 15:51:28 +10:00
parent 17d01b0cc6
commit ab3ab6d7c4
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1
2 changed files with 7 additions and 1 deletions

View File

@ -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"})

View File

@ -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>