mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Merge pull request #534 from appwrite/fix-github-redirect-wizard
fix: github redirect closing wizard
This commit is contained in:
@@ -30,8 +30,7 @@
|
||||
* Cancel navigation when wizard is open and triggered by popstate
|
||||
*/
|
||||
beforeNavigate((n) => {
|
||||
const external = n?.to?.url?.hostname !== globalThis?.location?.hostname;
|
||||
if (external) return;
|
||||
if (n.willUnload) return;
|
||||
if (!($wizard.show || $wizard.cover)) return;
|
||||
if (n.type === 'popstate') {
|
||||
n.cancel();
|
||||
|
||||
Reference in New Issue
Block a user