From 033249fa759d44b45a60757307e3e0cf802af416 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Sun, 26 Jun 2022 17:35:31 +0200 Subject: [PATCH] Fix setting frontend URL --- Model/Accounts/InstancesModel.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Model/Accounts/InstancesModel.swift b/Model/Accounts/InstancesModel.swift index fc0d18f8..96547cd7 100644 --- a/Model/Accounts/InstancesModel.swift +++ b/Model/Accounts/InstancesModel.swift @@ -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