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
@@ -70,7 +70,7 @@ const className = Astro.props.class;
|
||||
<div class="flex flex-row flex-nowrap items-center">
|
||||
{(tags && tags.length > 0) && tags.map((tag, i) => (
|
||||
<div class:list={[{"hidden": i == 0}, "mx-1.5 text-[var(--meta-divider)] text-sm"]}>/</div>
|
||||
<a href={url(`/archive/tag/${tag}/`)} aria-label=`View all posts with the ${tag} tag`
|
||||
<a href={url(`/archive/tag/${encodeURIComponent(tag)}/`)} aria-label=`View all posts with the ${tag} tag`
|
||||
class="link-lg transition text-50 text-sm font-medium
|
||||
hover:text-[var(--primary)] dark:hover:text-[var(--primary)] whitespace-nowrap">
|
||||
{tag}
|
||||
|
||||
Reference in new issue
Block a user