Fix display of encoded characters. Closes #1171.

This commit is contained in:
Mike Cao 2022-06-23 13:44:30 -07:00
parent 11ae382209
commit 1bfb26ab44
2 changed files with 13 additions and 7 deletions

View file

@ -2,6 +2,7 @@ import React from 'react';
import Link from 'next/link';
import classNames from 'classnames';
import usePageQuery from 'hooks/usePageQuery';
import { safeDecodeURI } from 'lib/url';
import Icon from './Icon';
import External from 'assets/arrow-up-right-from-square.svg';
import styles from './FilterLink.module.css';
@ -20,7 +21,7 @@ export default function FilterLink({ id, value, label, externalUrl }) {
[styles.active]: active && selected,
})}
>
{label || value}
{safeDecodeURI(label || value)}
</a>
</Link>
{externalUrl && (