From 11e6c847f8ca789b7f24a6c270bec1ca75eded51 Mon Sep 17 00:00:00 2001 From: Matthijs Hasenpflug Date: Tue, 19 Sep 2023 14:05:04 +0200 Subject: [PATCH] fix(ipx): fix encoding of query params in src --- src/runtime/providers/ipx.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime/providers/ipx.ts b/src/runtime/providers/ipx.ts index 05bc3b73d..a90caf70a 100644 --- a/src/runtime/providers/ipx.ts +++ b/src/runtime/providers/ipx.ts @@ -1,4 +1,4 @@ -import { joinURL, encodePath, encodeParam } from 'ufo' +import { joinURL, encodeParam, normalizeURL } from 'ufo' import type { ProviderGetImage } from '../../types' import { createOperationsGenerator } from '#image' @@ -30,7 +30,7 @@ export const getImage: ProviderGetImage = (src, { modifiers = {}, baseURL } = {} } return { - url: joinURL(baseURL, params, encodePath(src)) + url: joinURL(baseURL, params, normalizeURL(src)) } }