diff --git a/src/ng/location.js b/src/ng/location.js index 1d99e9b2ea21..1a5de48d47cd 100644 --- a/src/ng/location.js +++ b/src/ng/location.js @@ -650,6 +650,9 @@ function $LocationProvider(){ } var absHref = elm.prop('href'); + + // Ignore when url is started with javascript: or mailto: + if (absHref.toString().indexOf('javascript:') === 0 || absHref.toString().indexOf('mailto:') === 0) return; if (isObject(absHref) && absHref.toString() === '[object SVGAnimatedString]') { // SVGAnimatedString.animVal should be identical to SVGAnimatedString.baseVal, unless during