mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-01 20:39:44 +01:00
Fix decoding for FilterLink
This commit is contained in:
parent
443994d497
commit
4f03bec99e
@ -1,10 +1,9 @@
|
|||||||
|
import classNames from 'classnames';
|
||||||
|
import { useMessages, useNavigation } from 'components/hooks';
|
||||||
|
import { safeDecodeURIComponent } from 'next-basics';
|
||||||
|
import Link from 'next/link';
|
||||||
import { ReactNode } from 'react';
|
import { ReactNode } from 'react';
|
||||||
import { Icon, Icons } from 'react-basics';
|
import { Icon, Icons } from 'react-basics';
|
||||||
import classNames from 'classnames';
|
|
||||||
import Link from 'next/link';
|
|
||||||
import { safeDecodeURI } from 'next-basics';
|
|
||||||
import { useNavigation } from 'components/hooks';
|
|
||||||
import { useMessages } from 'components/hooks';
|
|
||||||
import styles from './FilterLink.module.css';
|
import styles from './FilterLink.module.css';
|
||||||
|
|
||||||
export interface FilterLinkProps {
|
export interface FilterLinkProps {
|
||||||
@ -40,7 +39,7 @@ export function FilterLink({
|
|||||||
{!value && `(${label || formatMessage(labels.unknown)})`}
|
{!value && `(${label || formatMessage(labels.unknown)})`}
|
||||||
{value && (
|
{value && (
|
||||||
<Link href={renderUrl({ [id]: value })} className={styles.label} replace>
|
<Link href={renderUrl({ [id]: value })} className={styles.label} replace>
|
||||||
{safeDecodeURI(label || value)}
|
{safeDecodeURIComponent(label || value)}
|
||||||
</Link>
|
</Link>
|
||||||
)}
|
)}
|
||||||
{externalUrl && (
|
{externalUrl && (
|
||||||
|
Loading…
Reference in New Issue
Block a user