Fix pathname comparison while served on subpath

This commit is contained in:
schroda
2026-05-13 00:12:43 +02:00
parent 17ecb7da27
commit 7fa106cd2c
4 changed files with 11 additions and 2 deletions

View File

@@ -44,4 +44,10 @@ export class SubpathUtil {
return `${baseUrl}${subpath}`;
}
public static getPathname(): string {
const subpath = this.getSubpath();
return window.location.pathname.replace(subpath, '');
}
}