Skip to content

Commit 313ace9

Browse files
authored
Fix __webpack_public_path__ for 1.11 (#11907)
Fixes: #11839
1 parent f79a2e1 commit 313ace9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_src/js/publicPath.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
const { StaticUrlPrefix } = window.config;
44

55
if (StaticUrlPrefix) {
6-
__webpack_public_path__ = StaticUrlPrefix.endsWith('/') ? StaticUrlPrefix : `${StaticUrlPrefix}/`;
6+
__webpack_public_path__ = `${StaticUrlPrefix.endsWith('/') ? StaticUrlPrefix : `${StaticUrlPrefix}/`}js`;
77
} else if (document.currentScript && document.currentScript.src) {
88
const url = new URL(document.currentScript.src);
99
__webpack_public_path__ = `${url.pathname.replace(/\/[^/]*$/, '')}/`;

0 commit comments

Comments
 (0)