Skip to content

Commit

Permalink
fix: encode jobId, closes #812
Browse files Browse the repository at this point in the history
  • Loading branch information
felixmosh committed Sep 11, 2024
1 parent cde34fa commit 917f2a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ui/src/utils/links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const links = {
selectedStatuses: SelectedStatuses = {}
): { pathname: string; search: string } {
const { pathname: queuePath, search } = links.queuePage(queueName, selectedStatuses);
const { pathname } = new URL(`${queuePath}/${jobId}`, 'http://fake.com');
const { pathname } = new URL(`${queuePath}/${encodeURIComponent(jobId)}`, 'http://fake.com');
return {
pathname,
search,
Expand Down

0 comments on commit 917f2a0

Please sign in to comment.