We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9d73d6 commit 8d57cfdCopy full SHA for 8d57cfd
apps/dashboard/src/app/(app)/team/~/[[...paths]]/page.tsx
@@ -30,9 +30,11 @@ export default async function Page(props: {
30
const searchParamsString = Object.entries(searchParams)
31
.map(([key, value]) => {
32
if (Array.isArray(value)) {
33
- return value.map((v) => `${key}=${v}`).join("&");
+ return value
34
+ .map((v) => `${key}=${encodeURIComponent(String(v))}`)
35
+ .join("&");
36
}
- return `${key}=${value}`;
37
+ return `${key}=${encodeURIComponent(String(value))}`;
38
})
39
.join("&");
40
0 commit comments