Skip to content

Commit ce51c2b

Browse files
authored
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: #11839 (comment)
1 parent 7937f14 commit ce51c2b

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}/`}js`;
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)