Skip to content

Commit 0ee9b8e

Browse files
authored
encode activity id (#3191)
1 parent d541be9 commit 0ee9b8e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib/utilities/route-for.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,12 @@ export const routeForStartStandaloneActivity = (
137137
const routeForStandaloneActivityBase = (
138138
parameters: NamespaceParameter & { activityId: string; runId: string },
139139
) => {
140+
const activityId = encodeURIForSvelte(parameters.activityId);
141+
140142
return resolve(
141143
`${routeForStandaloneActivities(parameters)}/[activityId]/[runId]`,
142144
{
143-
activityId: parameters.activityId,
145+
activityId,
144146
runId: parameters.runId,
145147
},
146148
);

0 commit comments

Comments
 (0)