Skip to content

Commit cafc760

Browse files
authored
Passing protocol and port through share links correctly (#521)
1 parent 1a018e2 commit cafc760

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/application/ApplicationThunks.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,13 +221,12 @@ export const handleSharedDashboardsThunk = () => (dispatch: any) => {
221221
const database = connection.split('@')[1].split(':')[0];
222222
const url = connection.split('@')[1].split(':')[1];
223223
const port = connection.split('@')[1].split(':')[2];
224-
225224
if (url == password) {
226225
// Special case where a connect link is generated without a password.
227226
// Here, the format is parsed incorrectly and we open the connection window instead.
228227

229228
dispatch(resetShareDetails());
230-
dispatch(setConnectionProperties('neo4j', url, '7687', database, username.split('@')[0], ''));
229+
dispatch(setConnectionProperties(protocol, url, port, database, username.split('@')[0], ''));
231230
dispatch(setWelcomeScreenOpen(false));
232231
dispatch(setConnectionModalOpen(true));
233232
// window.history.pushState({}, document.title, "/");

0 commit comments

Comments
 (0)