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:
committed by
GitHub
parent
adaf8af8b3
commit
3194dfc521
@@ -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)}>
|
||||
|
||||
Reference in New Issue
Block a user