mirror of
https://github.com/Suwayomi/TachideskJUI.git
synced 2025-12-10 06:42:05 +01:00
Improve handling of path prefix
This commit is contained in:
@@ -32,8 +32,8 @@ class ServerUrlPreference(
|
||||
override fun get(): Url {
|
||||
return URLBuilder(server.get()).apply {
|
||||
port = this@ServerUrlPreference.port.get()
|
||||
if (pathPrefix.isSet() && pathPrefix.get().isNotBlank()) {
|
||||
path(pathPrefix.get())
|
||||
if (pathPrefix.isSet()) {
|
||||
pathPrefix.get().ifBlank { null }?.let { path(it) }
|
||||
}
|
||||
}.build()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user