From 1149d76cd5c537cbedc7fd0352aad10798a33ea0 Mon Sep 17 00:00:00 2001 From: ksami Date: Sat, 5 Oct 2019 15:38:13 +0800 Subject: [PATCH] Escape link for tags --- src/ui/component/tag/view.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/component/tag/view.jsx b/src/ui/component/tag/view.jsx index b47050e6d..bf24b434c 100644 --- a/src/ui/component/tag/view.jsx +++ b/src/ui/component/tag/view.jsx @@ -15,7 +15,7 @@ type Props = { export default function Tag(props: Props) { const { name, onClick, type = 'link', disabled = false } = props; const isMature = MATURE_TAGS.includes(name); - const clickProps = onClick ? { onClick } : { navigate: `/$/tags?t=${name}` }; + const clickProps = onClick ? { onClick } : { navigate: encodeURIComponent(`/$/tags?t=${name}`) }; let title; if (!onClick) {