From 1c9d6baf87589ea6730b7fcb940dbcc5915194a5 Mon Sep 17 00:00:00 2001 From: woongsik Date: Mon, 21 Jul 2025 15:10:56 +0900 Subject: [PATCH 1/3] Fix : Fix the issue where the list does not appear when selecting Korean tags (filtering with encoded tag names). --- app/tags/[tag]/page.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/tags/[tag]/page.tsx b/app/tags/[tag]/page.tsx index ee52c702c9..b84234d2b4 100644 --- a/app/tags/[tag]/page.tsx +++ b/app/tags/[tag]/page.tsx @@ -39,7 +39,9 @@ export default async function TagPage(props: { params: Promise<{ tag: string }> const tag = decodeURI(params.tag) const title = tag[0].toUpperCase() + tag.split(' ').join('-').slice(1) const filteredPosts = allCoreContent( - sortPosts(allBlogs.filter((post) => post.tags && post.tags.map((t) => slug(t)).includes(tag))) + sortPosts( + allBlogs.filter((post) => post.tags && post.tags.map((t) => slug(t)).includes(decodeURI(tag))) + ) ) const totalPages = Math.ceil(filteredPosts.length / POSTS_PER_PAGE) const initialDisplayPosts = filteredPosts.slice(0, POSTS_PER_PAGE) From 2058cfb1de002c88f9d419919b630fa310a12081 Mon Sep 17 00:00:00 2001 From: woongsik Date: Mon, 21 Jul 2025 16:41:28 +0900 Subject: [PATCH 2/3] Fix : Fix the issue where the browser title appears in an encoded format when a Korean tag is selected. --- app/tags/[tag]/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/tags/[tag]/page.tsx b/app/tags/[tag]/page.tsx index b84234d2b4..d90f1b5ce5 100644 --- a/app/tags/[tag]/page.tsx +++ b/app/tags/[tag]/page.tsx @@ -15,7 +15,7 @@ export async function generateMetadata(props: { const params = await props.params const tag = decodeURI(params.tag) return genPageMetadata({ - title: tag, + title: decodeURI(tag), description: `${siteMetadata.title} ${tag} tagged content`, alternates: { canonical: './', From 83f3e24aa56dcb42c3062e27ecc76502b2068716 Mon Sep 17 00:00:00 2001 From: woongsik Date: Mon, 21 Jul 2025 16:43:23 +0900 Subject: [PATCH 3/3] Fix : Fix the issue where the header title appears in an encoded format on mobile browsers. --- app/tags/[tag]/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/tags/[tag]/page.tsx b/app/tags/[tag]/page.tsx index d90f1b5ce5..7fd2edc034 100644 --- a/app/tags/[tag]/page.tsx +++ b/app/tags/[tag]/page.tsx @@ -37,7 +37,7 @@ export const generateStaticParams = async () => { export default async function TagPage(props: { params: Promise<{ tag: string }> }) { const params = await props.params const tag = decodeURI(params.tag) - const title = tag[0].toUpperCase() + tag.split(' ').join('-').slice(1) + const title = decodeURI(tag[0].toUpperCase() + tag.split(' ').join('-').slice(1)) const filteredPosts = allCoreContent( sortPosts( allBlogs.filter((post) => post.tags && post.tags.map((t) => slug(t)).includes(decodeURI(tag)))