diff --git a/packages/ui/src/utils/links.ts b/packages/ui/src/utils/links.ts index 7cbd0bb8..5fc9b972 100644 --- a/packages/ui/src/utils/links.ts +++ b/packages/ui/src/utils/links.ts @@ -5,7 +5,10 @@ export const links = { queueName: string, selectedStatuses: SelectedStatuses = {} ): { pathname: string; search: string } { - const { pathname, searchParams } = new URL(`/queue/${queueName}`, 'http://fake.com'); + const { pathname, searchParams } = new URL( + `/queue/${encodeURIComponent(queueName)}`, + 'http://fake.com' + ); const withStatus = selectedStatuses[queueName] && selectedStatuses[queueName] !== 'latest'; if (withStatus) {