Add a noauto query param to login

This commit is contained in:
QuantumEntangledAndy
2024-10-07 09:17:43 +07:00
parent 329469021e
commit 1cda7003d1
3 changed files with 27 additions and 10 deletions

View File

@@ -180,7 +180,13 @@ function displayError(message) {
* Preserves the query string.
*/
function redirectToHome() {
window.location.href = '/' + window.location.search;
// After a login theres no need to preserve the
// noauto (if present)
const urlParams = new URLSearchParams(window.location.search);
urlParams.delete('noauto');
window.location.href = '/' + urlParams.toString();
}
/**