From 313ace93d048b13bdeba642c37e85175d68a6fc1 Mon Sep 17 00:00:00 2001 From: silverwind Date: Tue, 16 Jun 2020 17:26:45 +0200 Subject: [PATCH] Fix __webpack_public_path__ for 1.11 (#11907) Fixes: https://github.com/go-gitea/gitea/issues/11839 --- 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 4c683e175f..8ad570fb13 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(/\/[^/]*$/, '')}/`;