From 3afdbb1ddb73b8e9b88dfd16896f80235217cb91 Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Fri, 27 Jun 2025 13:31:32 -0300 Subject: [PATCH] fix(GBSSR): update packagePath logic to handle non-static URLs correctly --- packages/core.gbapp/services/GBSSR.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/core.gbapp/services/GBSSR.ts b/packages/core.gbapp/services/GBSSR.ts index 37e44436..bc46280d 100644 --- a/packages/core.gbapp/services/GBSSR.ts +++ b/packages/core.gbapp/services/GBSSR.ts @@ -336,6 +336,9 @@ export class GBSSR { if (GBServer.globals.wwwroot && url === '/') { packagePath = GBServer.globals.wwwroot + "/index.html"; // TODO. } + if (!min && !url.startsWith("/images") && GBServer.globals.wwwroot) { + packagePath = path.join(GBServer.globals.wwwroot, url); + } if (!min && !url.startsWith("/static") && GBServer.globals.wwwroot) { packagePath = path.join(GBServer.globals.wwwroot, url); }