mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-03 10:54:38 -05:00
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>
|
<script>
|
||||||
"// <<suwayomi-subpath-injection>>"
|
"// <<suwayomi-subpath-injection>>"
|
||||||
const baseTag = document.createElement('base');
|
const baseTag = document.createElement('base');
|
||||||
baseTag.href = location.origin + "${ServerSubpath.normalized()}/";
|
baseTag.href = location.origin + "${ServerSubpath.asRootPath()}";
|
||||||
document.head.appendChild(baseTag);
|
document.head.appendChild(baseTag);
|
||||||
</script>
|
</script>
|
||||||
""".trimIndent()
|
""".trimIndent()
|
||||||
|
|||||||
Reference in New Issue
Block a user