Skip to content

Commit 142c14c

Browse files
authored
Merge pull request #1012 from yanyao2333/main
Add decodeURI to ListLayoutWithTags
2 parents 6db2d51 + 396b13a commit 142c14c

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)