From 00a251f71345e68e9adb7f3ea350ecdca6a62cc5 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Tue, 30 Jul 2024 20:55:37 -0700 Subject: [PATCH] Fix: correctly decode tab names with special chars --- src/components/tab.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/tab.jsx b/src/components/tab.jsx index e0c2f46e..7b718346 100644 --- a/src/components/tab.jsx +++ b/src/components/tab.jsx @@ -14,7 +14,7 @@ export function slugifyAndEncode(tabName) { export default function Tab({ tab }) { const { activeTab, setActiveTab } = useContext(TabContext); - const matchesTab = decodeURI(activeTab) === slugify(tab); + const matchesTab = decodeURIComponent(activeTab) === slugify(tab); return (