Skip to content

Commit 396b13a

Browse files
authored
add decodeURI
1 parent 81fd4be commit 396b13a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layouts/ListLayoutWithTags.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export default function ListLayoutWithTags({
100100
{sortedTags.map((t) => {
101101
return (
102102
<li key={t} className="my-3">
103-
{pathname.split('/tags/')[1] === slug(t) ? (
103+
{decodeURI(pathname.split('/tags/')[1]) === slug(t) ? (
104104
<h3 className="inline px-3 py-2 text-sm font-bold uppercase text-primary-500">
105105
{`${t} (${tagCounts[t]})`}
106106
</h3>

0 commit comments

Comments
 (0)