web: match on path begin in sidebar

This commit is contained in:
Jens Langhammer 2020-12-31 14:19:36 +01:00
parent a85b8a65c0
commit 4daa373dcf
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ export class SidebarItem {
this.condition = async () => true;
this.activeMatchers = [];
if (this.path) {
this.activeMatchers.push(new RegExp(`^${this.path}$`));
this.activeMatchers.push(new RegExp(`^${this.path}`));
}
}