mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-15 16:55:05 +00:00
fix: improve back button handling on auth pages
This commit is contained in:
7
frontend/src/routes/login/+page.ts
Normal file
7
frontend/src/routes/login/+page.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import type { PageLoad } from './$types';
|
||||
|
||||
export const load: PageLoad = async ({ url }) => {
|
||||
return {
|
||||
redirect: url.searchParams.get('redirect') || '/settings'
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user