Skip to content

Commit

Permalink
Fix: correctly decode tab names with special chars
Browse files Browse the repository at this point in the history
  • Loading branch information
shamoon committed Jul 31, 2024
1 parent ed928bf commit 00a251f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/tab.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 00a251f

Please sign in to comment.