diff --git a/src/common/util.ts b/src/common/util.ts index f0d74582..1bd95ff6 100644 --- a/src/common/util.ts +++ b/src/common/util.ts @@ -46,7 +46,7 @@ export const trimSlashes = (url: string): string => { export const resolveBase = (base?: string): string => { // After resolving the base will either start with / or be an empty string. if (!base || base.startsWith("/")) { - return base || "" + return base ?? "" } const parts = location.pathname.split("/") parts[parts.length - 1] = base