diff --git a/frontend/public/index.html b/frontend/public/index.html index d13d7ed49..922558f80 100644 --- a/frontend/public/index.html +++ b/frontend/public/index.html @@ -34,13 +34,12 @@ return window.location; }; let l = window.__getLocation(); - let base = document.createElement('base'); + let base = document.querySelector('base'); if (!basePath.startsWith('__BASE')) { base.href = l.protocol + '//' + l.hostname + (l.port ? (':' + l.port) : '') + basePath; } else { base.href = l.protocol + '//' + l.hostname + (l.port ? (':' + l.port) : '') + '/'; } - document.head.appendChild(base); }