Skip to content

Commit 59a1ed8

Browse files
committed
goTo: open all external links in new window
1 parent ea63178 commit 59a1ed8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/express/public/javascripts/countly/countly.helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@
394394
* title is the text that will be dispalyed for the backlink url.
395395
*/
396396
CountlyHelpers.goTo = function(options) {
397-
if (options.url && options.url.startsWith('https://')) {
397+
if (options.isExternalLink) {
398398
window.open(options.url, '_blank', 'noopener,noreferrer');
399399
}
400400
else {

0 commit comments

Comments
 (0)