From ea54ea58f1e27ee0a3a25d4f3d1c753004411f28 Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Fri, 27 Dec 2024 21:51:03 +0100 Subject: [PATCH] Lib: Make button pathname matching more relaxed --- src/lib/components/form/Button.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/components/form/Button.svelte b/src/lib/components/form/Button.svelte index f4f6dd9..fb213b5 100644 --- a/src/lib/components/form/Button.svelte +++ b/src/lib/components/form/Button.svelte @@ -6,8 +6,8 @@ const is_at_path = (path: string): boolean => { const pathname: string = $page.url.pathname; - // console.log(pathname); - return pathname === path; + // return pathname === path; + return pathname.endsWith(path); }; interface ButtonProps extends HTMLButtonAttributes {