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:
1 parent
adaf8af8b3
commit
3194dfc521
3 files changed
+4
-4
No files matched your search
@@ -23,7 +23,7 @@ const style = Astro.props.style;
|
||||
<WidgetLayout name={i18n(I18nKey.tags)} id="tags" isCollapsed={isCollapsed} collapsedHeight={COLLAPSED_HEIGHT} class={className} style={style}>
|
||||
<div class="flex gap-2 flex-wrap">
|
||||
{tags.map(t => (
|
||||
<ButtonTag href={url(`/archive/tag/${t.name}/`)} label={`View all posts with the ${t.name} tag`}>
|
||||
<ButtonTag href={url(`/archive/tag/${encodeURIComponent(t.name)}/`)} label={`View all posts with the ${t.name} tag`}>
|
||||
{t.name}
|
||||
</ButtonTag>
|
||||
))}
|
||||
|
||||
Reference in new issue
Block a user