mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Preserve a query string when redirecting to and from login
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user