From ef5fcd587002c5d1788e8b0cd614834275d631f3 Mon Sep 17 00:00:00 2001 From: Badr B Date: Wed, 12 Apr 2023 12:44:13 +0200 Subject: [PATCH] fix : typo --- front/middleware.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/middleware.ts b/front/middleware.ts index c4071df0..baeb1761 100644 --- a/front/middleware.ts +++ b/front/middleware.ts @@ -45,7 +45,7 @@ export default function middleware(req: NextRequest) { } if (isSelfHosted) { - currentHost = getDefaultOrg() || currentHost; + currentHost = defaultOrg || currentHost; } url.pathname = `/_orgs/${currentHost}${url.pathname}`;