Skip to content

Commit

Permalink
fix(api): fix checking stats for URLs with encoded characters
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahsnider committed Apr 24, 2024
1 parent d659cd2 commit 89110ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/web/app/components/url-stats/url-stats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { UrlStatsInput } from './url-stats-input';

function extractShort(url: string): string | undefined {
try {
return new URL(url).pathname.slice(1);
return decodeURIComponent(new URL(url).pathname).slice(1);
} catch {
return undefined;
}
Expand Down

0 comments on commit 89110ec

Please sign in to comment.