Skip to content

Commit

Permalink
fix: encode queue name in links, closes #750 (#752)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixmosh authored May 23, 2024
1 parent 36b5824 commit cc42753
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/ui/src/utils/links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit cc42753

Please sign in to comment.