From 03f667c21dbc6dd8b0e8d5dd06dde8b729b92471 Mon Sep 17 00:00:00 2001 From: Webysther Sperandio Date: Tue, 20 Jun 2023 20:43:40 +0200 Subject: [PATCH] feat: custom location on admin redirect to base (#3103) --- packages/hoppscotch-sh-admin/src/helpers/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/hoppscotch-sh-admin/src/helpers/auth.ts b/packages/hoppscotch-sh-admin/src/helpers/auth.ts index 850310b03..ba7385dbe 100644 --- a/packages/hoppscotch-sh-admin/src/helpers/auth.ts +++ b/packages/hoppscotch-sh-admin/src/helpers/auth.ts @@ -383,7 +383,7 @@ export const auth = { await this.signInWithEmailLink(deviceIdentifier, window.location.href); removeLocalConfig('deviceIdentifier'); - window.location.href = '/'; + window.location.href = import.meta.env.VITE_ADMIN_URL; } }, };