Fix setting frontend URL

This commit is contained in:
Arkadiusz Fal 2022-06-26 17:35:31 +02:00
parent 539869cdbb
commit 033249fa75

View File

@ -61,7 +61,7 @@ final class InstancesModel: ObservableObject {
}
static func standardizedURL(_ url: String) -> String {
if url.last == "/" {
if url.count > 7, url.last == "/" {
return String(url.dropLast())
} else {
return url