diff options
author | silverwind | 2020-06-18 22:40:07 +0200 |
---|---|---|
committer | GitHub | 2020-06-18 21:40:07 +0100 |
commit | ce51c2bdf6e8a67b4121b03c23125a3efe160927 (patch) | |
tree | 64392a32833dfe2dfb562e840da5e7e586c9dfda | |
parent | 7937f1463a9be43574460b14fe7a509ca62ecd6d (diff) |
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
-rw-r--r-- | web_src/js/publicPath.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web_src/js/publicPath.js b/web_src/js/publicPath.js index 8ad570fb1..d80d1a23b 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(/\/[^/]*$/, '')}/`; |