mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-09 06:48:47 +00:00
Fix: correctly decode tab names with special chars (#3797)
This commit is contained in:
parent
ed928bfa25
commit
9484a9ff56
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue