test($location): ensure that link rewriting is actually being tested
test($location): ensure that link rewriting is actually being tested

If the link URL is not within the given base URL then the link would not
be rewritten anyway.

See https://github.com/angular/angular.js/pull/9906/files#r19813651

ggershoni/angular.js,ggershoni/angular.js,ggershoni/angular.js,ggershoni/angular.js