From 4daa373dcf6fa8c95dcdc763c150302be4a8bcee Mon Sep 17 00:00:00 2001
From: Jens Langhammer <jens.langhammer@beryju.org>
Date: Thu, 31 Dec 2020 14:19:36 +0100
Subject: [PATCH] web: match on path begin in sidebar

---
 web/src/elements/sidebar/Sidebar.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/web/src/elements/sidebar/Sidebar.ts b/web/src/elements/sidebar/Sidebar.ts
index bf639b84e..da2203027 100644
--- a/web/src/elements/sidebar/Sidebar.ts
+++ b/web/src/elements/sidebar/Sidebar.ts
@@ -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}`));
         }
     }