fix: Encode URI components for tag links to handle reserved characters (#430)

* fix: Encode URI components for tag links to handle reserved characters

* delete: Remove reserved character test markdown file
This commit is contained in:
Katsuyuki Karasawa
2025-05-01 02:02:52 +09:00
committed by GitHub
parent adaf8af8b3
commit 3194dfc521
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -19,12 +19,12 @@ export async function getStaticPaths() {
return allTagsArray.map((tag) => ({
params: {
tag: tag,
tag: encodeURIComponent(tag),
},
}));
}
const tag = Astro.params.tag as string;
const tag = decodeURIComponent(Astro.params.tag as string);
---
<MainGridLayout title={i18n(I18nKey.archive)} description={i18n(I18nKey.archive)}>