Skip to content

Commit 42cf411

Browse files
authored
Merge pull request RocketChat#346 from RocketChat/bugfix/internal-links
Open link in app if internal url
2 parents f5d8fb8 + 9250b90 commit 42cf411

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/public/preload.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ var supportExternalLinks = function (e) {
3737
}
3838
}
3939

40-
if (/^https?:\/\/.+/.test(href) === true /*&& RegExp('^https?:\/\/'+location.host).test(href) === false*/) {
40+
if (/^https?:\/\/.+/.test(href) && !RegExp('^https?:\/\/'+location.host).test(href)) {
4141
isExternal = true;
4242
}
4343

0 commit comments

Comments
 (0)