From cafc7602570e2ddb85bb3e92e0126f7c965a8d74 Mon Sep 17 00:00:00 2001 From: Niels de Jong Date: Tue, 25 Jul 2023 15:58:42 +0200 Subject: [PATCH] Passing protocol and port through share links correctly (#521) --- src/application/ApplicationThunks.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/application/ApplicationThunks.ts b/src/application/ApplicationThunks.ts index bbe18fe5c..6f8140b70 100644 --- a/src/application/ApplicationThunks.ts +++ b/src/application/ApplicationThunks.ts @@ -221,13 +221,12 @@ export const handleSharedDashboardsThunk = () => (dispatch: any) => { const database = connection.split('@')[1].split(':')[0]; const url = connection.split('@')[1].split(':')[1]; const port = connection.split('@')[1].split(':')[2]; - if (url == password) { // Special case where a connect link is generated without a password. // Here, the format is parsed incorrectly and we open the connection window instead. dispatch(resetShareDetails()); - dispatch(setConnectionProperties('neo4j', url, '7687', database, username.split('@')[0], '')); + dispatch(setConnectionProperties(protocol, url, port, database, username.split('@')[0], '')); dispatch(setWelcomeScreenOpen(false)); dispatch(setConnectionModalOpen(true)); // window.history.pushState({}, document.title, "/");