Fix: correctly decode tab names with special chars (#3797)

pull/3799/head
shamoon 3 months ago committed by GitHub
parent ed928bfa25
commit 9484a9ff56
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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 (
<li

Loading…
Cancel
Save