Fix loading of locales
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
export class SubpathUtil {
|
export class SubpathUtil {
|
||||||
public static getSubpath(): string | null {
|
public static getSubpath(): string {
|
||||||
const envSubpath = import.meta.env.VITE_SUBPATH;
|
const envSubpath = import.meta.env.VITE_SUBPATH;
|
||||||
if (envSubpath && envSubpath !== '/') {
|
if (envSubpath && envSubpath !== '/') {
|
||||||
return envSubpath;
|
return envSubpath;
|
||||||
@@ -18,7 +18,7 @@ export class SubpathUtil {
|
|||||||
return serverSubpath;
|
return serverSubpath;
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
private static getServerSubpath(): string | null {
|
private static getServerSubpath(): string | null {
|
||||||
@@ -31,7 +31,7 @@ export class SubpathUtil {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static getRouterBasename(): string | undefined {
|
public static getRouterBasename(): string | undefined {
|
||||||
return this.getSubpath() ?? undefined;
|
return this.getSubpath() || undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static getApiBaseUrl(serverUrl: string): string {
|
public static getApiBaseUrl(serverUrl: string): string {
|
||||||
|
|||||||
Reference in New Issue
Block a user