Skip to content

Commit

Permalink
Merge pull request #1012 from yanyao2333/main
Browse files Browse the repository at this point in the history
Add decodeURI to ListLayoutWithTags
  • Loading branch information
timlrx authored Sep 12, 2024
2 parents 6db2d51 + 396b13a commit 142c14c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/ListLayoutWithTags.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export default function ListLayoutWithTags({
{sortedTags.map((t) => {
return (
<li key={t} className="my-3">
{pathname.split('/tags/')[1] === slug(t) ? (
{decodeURI(pathname.split('/tags/')[1]) === slug(t) ? (
<h3 className="inline px-3 py-2 text-sm font-bold uppercase text-primary-500">
{`${t} (${tagCounts[t]})`}
</h3>
Expand Down

0 comments on commit 142c14c

Please sign in to comment.