Skip to content

Commit aa89d43

Browse files
committed
MOBILE-2178 links: Treat mail/tel/geo links as absolute
1 parent d038cc0 commit aa89d43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

www/core/lib/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ angular.module('mm.core')
209209
* @return {Boolean} TRUE if the url is absolute. FALSE if it is relative.
210210
*/
211211
self.isAbsoluteURL = function(url) {
212-
return /^[^:]{2,10}:\/\//i.test(url);
212+
return /^[^:]{2,10}:\/\//i.test(url) || /^(tel:|mailto:|geo:)/.test(url);
213213
};
214214

215215
/**

0 commit comments

Comments
 (0)