Merge pull request #534 from appwrite/fix-github-redirect-wizard

fix: github redirect closing wizard
This commit is contained in:
Torsten Dittmann
2023-09-07 16:56:42 +02:00
committed by GitHub
+1 -2
View File
@@ -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();