mirror of
https://github.com/JonasunderscoreJones/dash.jonasjones.dev.git
synced 2025-10-23 00:09:19 +02:00
in the hope that this fixes it
This commit is contained in:
parent
895147a596
commit
0396cebc18
2 changed files with 4 additions and 0 deletions
|
@ -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';
|
||||||
}
|
}
|
||||||
|
|
|
@ -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';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue