diff --git a/packages/frontend/src/scripts/get-embed-code.ts b/packages/frontend/src/scripts/get-embed-code.ts index 27b25336ef..9ab4e3d17b 100644 --- a/packages/frontend/src/scripts/get-embed-code.ts +++ b/packages/frontend/src/scripts/get-embed-code.ts @@ -48,7 +48,7 @@ export function getEmbedCode(path: string, params?: EmbedParams): string { let paramString = ''; if (params) { const searchParams = new URLSearchParams(normalizeEmbedParams(params)); - paramString = '?' + searchParams.toString(); + paramString = searchParams.toString() === '' ? '' : '?' + searchParams.toString(); } const iframeCode = [