mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-30 18:09:40 +05:00
feat: add login redirect to the page which initiated auth
This commit is contained in:
parent
d28011b4fb
commit
3378d5b99e
7 changed files with 12 additions and 14 deletions
|
@ -63,7 +63,7 @@ export function HistoryPage() {
|
|||
|
||||
useEffect(() => {
|
||||
if (authState === "finished" && !token) {
|
||||
router.push("/login");
|
||||
router.push("/login?redirect=/history");
|
||||
}
|
||||
}, [authState, token]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue