fix($location): respect absolute paths correctly

Fixes absolute links on browsers with html5Mode enabled.

Previously clicking on a link out of the base href would still rewrite
the URL.