From 0af4aaf4f65ff1fad3c19fe1b1064acf37fdaa8b Mon Sep 17 00:00:00 2001 From: Steven Vandevelde Date: Thu, 10 Sep 2026 13:27:07 +0200 Subject: [PATCH] fix: relative urls facets --- src/common/loader.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/common/loader.js b/src/common/loader.js index 584c8206..87fd9671 100644 --- a/src/common/loader.js +++ b/src/common/loader.js @@ -320,7 +320,10 @@ function toBuildRootUrl(value) { /^[a-z][a-z0-9+.-]*:/i.test(v)) { return value; } - return `/${v}`; + // Resolve against the loader's `` (the Diffuse build root) rather than + // prefixing a bare `/`, so the URL stays inside the deployment's subfolder + // instead of always pointing at the domain root. + return new URL(v, document.baseURI).href; } /** -- 2.51.2