From 731ed3ad342dc8a4113c7eb4771110e4088f86bd Mon Sep 17 00:00:00 2001
From: MohamedBassem <me@mbassem.com>
Date: Wed, 27 Mar 2024 13:42:22 +0000
Subject: fix: Fix allow links with trailing slashes in extension
 configuration. Fixes #18

---
 apps/browser-extension/src/NotConfiguredPage.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'apps/browser-extension/src/NotConfiguredPage.tsx')

diff --git a/apps/browser-extension/src/NotConfiguredPage.tsx b/apps/browser-extension/src/NotConfiguredPage.tsx
index fc5c8f47..cad87303 100644
--- a/apps/browser-extension/src/NotConfiguredPage.tsx
+++ b/apps/browser-extension/src/NotConfiguredPage.tsx
@@ -19,7 +19,7 @@ export default function NotConfiguredPage() {
       setError("Server address is required");
       return;
     }
-    setSettings((s) => ({ ...s, address: serverAddress }));
+    setSettings((s) => ({ ...s, address: serverAddress.replace(/\/$/, "") }));
     navigate("/signin");
   };
 
-- 
cgit v1.2.3-70-g09d2

