aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsilverwind2020-06-16 17:26:45 +0200
committerGitHub2020-06-16 11:26:45 -0400
commit313ace93d048b13bdeba642c37e85175d68a6fc1 (patch)
treec15b044a938fbeb47d8f4376bd35e122b846b58c
parentf79a2e193f7081fee8752f3587677e2924fb4dbd (diff)
Fix __webpack_public_path__ for 1.11 (#11907)
Fixes: https://github.com/go-gitea/gitea/issues/11839
-rw-r--r--web_src/js/publicPath.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web_src/js/publicPath.js b/web_src/js/publicPath.js
index 4c683e175..8ad570fb1 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}/`;
+ __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(/\/[^/]*$/, '')}/`;