This commit is contained in:
parent
833af735cf
commit
bbab76bc7f
@ -25,7 +25,10 @@ document.querySelector("#login").onsubmit = async (event) => {
|
||||
}
|
||||
const refer = decodeURIComponent(params.get("refer"));
|
||||
params.delete("refer")
|
||||
window.location.search = params.toString();
|
||||
window.location.pathname = refer;
|
||||
if (params.size === 0) {
|
||||
window.location.pathname = refer;
|
||||
return;
|
||||
}
|
||||
window.location = `${refer}?${params.toString()}`;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user