From 4d125d4a27d596d369f51c68b178e0667fae7f11 Mon Sep 17 00:00:00 2001 From: Egor Aristov Date: Wed, 5 Feb 2025 23:05:46 +0300 Subject: [PATCH] screenshots; apiBase --- frontend/wizard-vue/src/urlmaker/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/wizard-vue/src/urlmaker/index.ts b/frontend/wizard-vue/src/urlmaker/index.ts index 678f462..bc92e28 100644 --- a/frontend/wizard-vue/src/urlmaker/index.ts +++ b/frontend/wizard-vue/src/urlmaker/index.ts @@ -37,7 +37,7 @@ export async function encodeUrl(specs: Specs): Promise { } export function getScreenshotUrl(url: string): string { - return `${apiBase}${screenshotEndpoint}?url=${url}`; + return `${apiBase}${screenshotEndpoint}?url=${encodeURIComponent(url)}`; } function b64encode(buf: Uint8Array): string {