Fix base path injection when serving from root (#1669)

Without having a subpath defined, the base path incorrectly ended with two "/" instead of one
This commit is contained in:
schroda
2025-09-25 17:56:19 +02:00
committed by GitHub
parent cdb98d2175
commit 28ab0af6d4

View File

@@ -199,7 +199,7 @@ object WebInterfaceManager {
<script>
"// <<suwayomi-subpath-injection>>"
const baseTag = document.createElement('base');
baseTag.href = location.origin + "${ServerSubpath.normalized()}/";
baseTag.href = location.origin + "${ServerSubpath.asRootPath()}";
document.head.appendChild(baseTag);
</script>
""".trimIndent()