@@ -261,24 +261,40 @@ export const handleSharedDashboardsThunk = () => (dispatch: any) => {
261261 const dashboardDatabase = urlParams . get ( 'dashboardDatabase' ) ;
262262 dispatch ( setStandaloneDashboardDatabase ( dashboardDatabase ) ) ;
263263 if ( urlParams . get ( 'credentials' ) ) {
264+ setWelcomeScreenOpen ( false ) ;
264265 const connection = decodeURIComponent ( urlParams . get ( 'credentials' ) ) ;
265266 const protocol = connection . split ( '://' ) [ 0 ] ;
266267 const username = connection . split ( '://' ) [ 1 ] . split ( ':' ) [ 0 ] ;
267268 const password = connection . split ( '://' ) [ 1 ] . split ( ':' ) [ 1 ] . split ( '@' ) [ 0 ] ;
268269 const database = connection . split ( '@' ) [ 1 ] . split ( ':' ) [ 0 ] ;
269270 const url = connection . split ( '@' ) [ 1 ] . split ( ':' ) [ 1 ] ;
270271 const port = connection . split ( '@' ) [ 1 ] . split ( ':' ) [ 2 ] ;
271- if ( url == password ) {
272- // Special case where a connect link is generated without a password.
273- // Here, the format is parsed incorrectly and we open the connection window instead.
274-
275- dispatch ( resetShareDetails ( ) ) ;
276- dispatch ( setConnectionProperties ( protocol , url , port , database , username . split ( '@' ) [ 0 ] , '' ) ) ;
277- dispatch ( setWelcomeScreenOpen ( false ) ) ;
278- dispatch ( setConnectionModalOpen ( true ) ) ;
279- // window.history.pushState({}, document.title, "/");
280- return ;
281- }
272+ // if (url == password) {
273+ // // Special case where a connect link is generated without a password.
274+ // // Here, the format is parsed incorrectly and we open the connection window instead.
275+ // dispatch(setConnectionProperties(protocol, url, port, database, username.split('@')[0], ''));
276+ // dispatch(
277+ // setShareDetailsFromUrl(
278+ // type,
279+ // id,
280+ // standalone,
281+ // protocol,
282+ // url,
283+ // port,
284+ // database,
285+ // username.split('@')[0],
286+ // '',
287+ // dashboardDatabase,
288+ // true
289+ // )
290+ // );
291+ // setDashboardToLoadAfterConnecting(id);
292+ // window.history.pushState({}, document.title, window.location.pathname);
293+ // dispatch(setConnectionModalOpen(true));
294+ // dispatch(setWelcomeScreenOpen(false));
295+ // // window.history.pushState({}, document.title, "/");
296+ // return;
297+ // }
282298
283299 dispatch ( setConnectionModalOpen ( false ) ) ;
284300 dispatch (
0 commit comments