Skip to content

Commit 894e31f

Browse files
committed
Don't show mobile guide if deep linking
Other part of element-hq#7378
1 parent ac81080 commit 894e31f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/vector/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,9 @@ async function loadApp() {
251251

252252
// don't try to redirect to the native apps if we're
253253
// verifying a 3pid (but after we've loaded the config)
254-
const preventRedirect = Boolean(fragparts.params.client_secret);
254+
// or if the user is following a deep link
255+
// (https://github.com/vector-im/riot-web/issues/7378)
256+
const preventRedirect = fragparts.params.client_secret || fragparts.location.length > 0;
255257

256258
if (!preventRedirect) {
257259
const isIos = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;

0 commit comments

Comments
 (0)