From bc44e3ea5221c1f898ce1d3ae41accbd3c39acc9 Mon Sep 17 00:00:00 2001 From: Sashank Aryal Date: Tue, 17 Dec 2024 15:31:35 -0600 Subject: [PATCH] don't get rid of query params if source is defined --- app/packages/looker/src/worker/disk-overlay-decoder.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/packages/looker/src/worker/disk-overlay-decoder.ts b/app/packages/looker/src/worker/disk-overlay-decoder.ts index 73b5d02b6c..2948831061 100644 --- a/app/packages/looker/src/worker/disk-overlay-decoder.ts +++ b/app/packages/looker/src/worker/disk-overlay-decoder.ts @@ -102,7 +102,7 @@ export const decodeOverlayOnDisk = async ( let baseUrl = overlayImageUrl; // remove query params if not local URL - if (!urlTokens.at(1)?.startsWith("filepath=")) { + if (!urlTokens.at(1)?.startsWith("filepath=") && !source) { baseUrl = overlayImageUrl.split("?")[0]; }