From e234a5cc27d1fa4d3583523ebc173d5527e3c27f Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Sat, 17 Feb 2024 01:04:25 -0800
Subject: fix(error): return partial match in closest

---
 src/routes/+error.svelte | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/routes/+error.svelte')

diff --git a/src/routes/+error.svelte b/src/routes/+error.svelte
index 03e5bfc0..cf0dc34e 100644
--- a/src/routes/+error.svelte
+++ b/src/routes/+error.svelte
@@ -3,7 +3,7 @@
 	import { closest } from '$lib/Error/path';
 	import Popup from '$lib/Popup.svelte';
 
-	$: suggestion = closest($page.url.pathname, [
+	$: suggestion = closest($page.url.pathname.replace('/', ''), [
 		'birthdays',
 		'completed',
 		'schedule',
-- 
cgit v1.2.3

