From 8edf6d92b4320e1f034d5ca9a663296983d09a4e Mon Sep 17 00:00:00 2001 From: Fikri Karim Date: Mon, 18 Nov 2024 14:21:00 +0700 Subject: [PATCH] fix: PDP 404 This error was introduced when we tried to fix stale issue when publishing changes --- core/middlewares/with-routes.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/core/middlewares/with-routes.ts b/core/middlewares/with-routes.ts index 30853e5fc..a146ab3a1 100644 --- a/core/middlewares/with-routes.ts +++ b/core/middlewares/with-routes.ts @@ -315,11 +315,12 @@ export const withRoutes: MiddlewareFactory = () => { break; } - // Disable static caching on the product page because the page is editable with Makeswift - // case 'Product': { - // url = `/${locale}/product/${node.entityId}${postfix}`; - // break; - // } + case 'Product': { + // Disable static caching on the product page because the page is editable with Makeswift + // url = `/${locale}/product/${node.entityId}${postfix}`; + url = `/${locale}/product/${node.entityId}`; + break; + } case 'NormalPage': { url = `/${locale}/webpages/normal/${node.id}`;