From ce51c2bdf6e8a67b4121b03c23125a3efe160927 Mon Sep 17 00:00:00 2001 From: silverwind Date: Thu, 18 Jun 2020 22:40:07 +0200 Subject: [PATCH] Really fix __webpack_public_path__ for 1.11 (#11961) Trailing slash is actually significant, fixed that and i've now tested it as well. Ref: https://github.com/go-gitea/gitea/issues/11839#issuecomment-646203505 --- web_src/js/publicPath.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_src/js/publicPath.js b/web_src/js/publicPath.js index 8ad570fb13..d80d1a23ba 100644 --- a/web_src/js/publicPath.js +++ b/web_src/js/publicPath.js @@ -3,7 +3,7 @@ const { StaticUrlPrefix } = window.config; if (StaticUrlPrefix) { - __webpack_public_path__ = `${StaticUrlPrefix.endsWith('/') ? StaticUrlPrefix : `${StaticUrlPrefix}/`}js`; + __webpack_public_path__ = `${StaticUrlPrefix.endsWith('/') ? StaticUrlPrefix : `${StaticUrlPrefix}/`}js/`; } else if (document.currentScript && document.currentScript.src) { const url = new URL(document.currentScript.src); __webpack_public_path__ = `${url.pathname.replace(/\/[^/]*$/, '')}/`;