in the hope that this fixes it

This commit is contained in:
Jonas_Jones 2025-03-02 21:17:55 +01:00
parent 895147a596
commit 0396cebc18
2 changed files with 4 additions and 0 deletions

View file

@ -23,6 +23,8 @@
// Get the return URL from query parameters // Get the return URL from query parameters
const returnUrl = new URLSearchParams(window.location.search).get('returnUrl') || '/'; const returnUrl = new URLSearchParams(window.location.search).get('returnUrl') || '/';
navigate(returnUrl); // Redirect back to the requested path navigate(returnUrl); // Redirect back to the requested path
// reload the page
location.reload();
} else { } else {
errorMessage = 'Invalid login credentials'; errorMessage = 'Invalid login credentials';
} }

View file

@ -26,6 +26,8 @@
// Get the return URL from query parameters // Get the return URL from query parameters
const returnUrl = new URLSearchParams(window.location.search).get('returnUrl') || '/'; const returnUrl = new URLSearchParams(window.location.search).get('returnUrl') || '/';
navigate(returnUrl); // Redirect back to the requested path navigate(returnUrl); // Redirect back to the requested path
// reload the page
location.reload();
} else { } else {
errorMessage = 'Invalid login credentials'; errorMessage = 'Invalid login credentials';
} }