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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user