Preserve a query string when redirecting to and from login

This commit is contained in:
Cohee
2024-04-16 18:44:11 +03:00
parent f947c1304a
commit 3dcea41c4e
3 changed files with 10 additions and 3 deletions

View File

@ -177,9 +177,10 @@ function displayError(message) {
/**
* Redirects the user to the home page.
* Preserves the query string.
*/
function redirectToHome() {
window.location.href = '/';
window.location.href = '/' + window.location.search;
}
/**