diff --git a/scm-ui/ui-webapp/src/containers/loadBundle.ts b/scm-ui/ui-webapp/src/containers/loadBundle.ts index 8096e70ec4..7586f93984 100644 --- a/scm-ui/ui-webapp/src/containers/loadBundle.ts +++ b/scm-ui/ui-webapp/src/containers/loadBundle.ts @@ -47,7 +47,15 @@ type PluginModule = { const BundleLoader = { name: "bundle-loader", fetch: (plugin: PluginModule) => { - return fetch(plugin.address, { + let url = plugin.address; + if (!url.endsWith(".bundle.js")) { + url += ".bundle.js"; + } + + if (url.includes("@scm-manager/")) { + url = url.replace("@scm-manager/", ""); + } + return fetch(url, { credentials: "same-origin", headers: { Cache: "no-cache",