mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-11 00:49:17 +00:00
fix: improve back button handling on auth pages
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
alternativeSignInButton.label = m.sign_in_with_login_code();
|
||||
}
|
||||
|
||||
if (page.url.pathname == '/login') {
|
||||
if (page.url.pathname != '/login') {
|
||||
alternativeSignInButton.href = `${alternativeSignInButton.href}?redirect=${encodeURIComponent(page.url.pathname + page.url.search)}`;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user