From 7ddc4949e5fff8353cf270ffe72deabb4161d556 Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Thu, 25 Sep 2025 01:40:35 +0200 Subject: [PATCH] Fix loading of locales --- src/lib/utils/SubpathUtil.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/utils/SubpathUtil.ts b/src/lib/utils/SubpathUtil.ts index 7db3423d..f4ff8129 100644 --- a/src/lib/utils/SubpathUtil.ts +++ b/src/lib/utils/SubpathUtil.ts @@ -7,7 +7,7 @@ */ export class SubpathUtil { - public static getSubpath(): string | null { + public static getSubpath(): string { const envSubpath = import.meta.env.VITE_SUBPATH; if (envSubpath && envSubpath !== '/') { return envSubpath; @@ -18,7 +18,7 @@ export class SubpathUtil { return serverSubpath; } - return null; + return ''; } private static getServerSubpath(): string | null { @@ -31,7 +31,7 @@ export class SubpathUtil { } public static getRouterBasename(): string | undefined { - return this.getSubpath() ?? undefined; + return this.getSubpath() || undefined; } public static getApiBaseUrl(serverUrl: string): string {