Skip to content

Commit

Permalink
Merge pull request #1578 from YannikRudolph0108/master
Browse files Browse the repository at this point in the history
Fix setting of custom BASE_URL in index.html
  • Loading branch information
jvorcak authored Jan 10, 2025
2 parents 63756a7 + 7daace8 commit bf9541b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions frontend/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
</script>

Expand Down

0 comments on commit bf9541b

Please sign in to comment.