Fix pathname comparison while served on subpath
This commit is contained in:
@@ -44,4 +44,10 @@ export class SubpathUtil {
|
||||
|
||||
return `${baseUrl}${subpath}`;
|
||||
}
|
||||
|
||||
public static getPathname(): string {
|
||||
const subpath = this.getSubpath();
|
||||
|
||||
return window.location.pathname.replace(subpath, '');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user