From 6f4092624157dd6e8884981276b135e4d15c7259 Mon Sep 17 00:00:00 2001 From: Dmitry Verkhoturov Date: Sun, 23 Aug 2026 20:58:27 +0100 Subject: [PATCH] Drop the origin-anchored public path from the delete-me bundle (#2219) deleteme.ts set __webpack_public_path__ to window.location.origin plus /web/, which discards any path prefix the instance is served under. It is inert today because that bundle references no asset and loads no chunk, so the value is assigned and never read, but it is wrong by construction and would resolve at the domain root the moment anyone adds an image to that page. Removing it leaves webpack's own publicPath: 'auto', which derives the base from the script's URL and is right in both arrangements. --- frontend/apps/remark42/app/deleteme.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/frontend/apps/remark42/app/deleteme.ts b/frontend/apps/remark42/app/deleteme.ts index 481797d4..2a0e90e0 100644 --- a/frontend/apps/remark42/app/deleteme.ts +++ b/frontend/apps/remark42/app/deleteme.ts @@ -10,8 +10,6 @@ if (document.readyState === 'loading') { } async function init(): Promise { - __webpack_public_path__ = `${window.location.origin}/web/`; - const node = document.getElementById(NODE_ID); if (!node) {