Punycode support. Closes #2170

This commit is contained in:
Francis Cao committed 2026-07-17 10:22:37 -07:00
1 parent b47847958a
commit 8004afe63d
8 files changed
+40 -5

No files matched your search

+2 -1
View File
@@ -10,6 +10,7 @@ import {
useRegionNames,
} from '@/components/hooks';
import { GROUPED_DOMAINS } from '@/lib/constants';
import { decodePunycodeDomain } from '@/lib/format';
export interface MetricLabelProps {
type: string;
@@ -113,7 +114,7 @@ export function MetricLabel({ type, data }: MetricLabelProps) {
type="referrer"
value={label}
externalUrl={`https://${label}`}
label={!label && t(labels.none)}
label={!label ? t(labels.none) : decodePunycodeDomain(label)}
icon={<Favicon domain={label} />}
/>
);