Fixed tags including special chars being broken when used in URLs

This commit is contained in:
Alejandro Celaya
2021-09-01 10:53:45 +02:00
parent f41a8473f8
commit 923575b38b
4 changed files with 18 additions and 12 deletions

View File

@@ -70,7 +70,7 @@ const ShortUrlsList = (ShortUrlsTable: FC<ShortUrlsTableProps>) => boundToMercur
useEffect(() => {
const { tag } = parseQuery<{ tag?: string }>(location.search);
const tags = tag ? [ tag ] : shortUrlsListParams.tags;
const tags = tag ? [ decodeURIComponent(tag) ] : shortUrlsListParams.tags;
refreshList({ page: match.params.page, tags, itemsPerPage: undefined });