From 88f0016a1c1fcef122b4066fb45003edbbbafb6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Meyer?= Date: Fri, 14 Jul 2023 12:41:33 +0200 Subject: [PATCH] feat(poc): try fix 404 error on prod dep --- lib/shopware/api.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/shopware/api.ts b/lib/shopware/api.ts index 89c666674..35655a275 100644 --- a/lib/shopware/api.ts +++ b/lib/shopware/api.ts @@ -123,6 +123,16 @@ export async function requestSeoUrl( type: 'equals', field: 'seoPathInfo', value: handle + }, + { + type: 'equals', + field: 'seoPathInfo', + value: decodeURI(handle) + '/' + }, + { + type: 'equals', + field: 'seoPathInfo', + value: decodeURI(handle) } ] } @@ -145,4 +155,4 @@ export async function requestCrossSell( export async function requestCart() { return apiInstance.invoke('readCart get /checkout/cart?name', {}); -} \ No newline at end of file +}