@caitp. Please reread my comment
https://github.com/angular/angular.js/issues/6162#issuecomment-35846008


On 28 March 2014 11:02, Caitlin Potter <notifications@github.com> wrote:

> In src/ng/location.js:
>
> > +      // The href should be a regular url e.g. /link/somewhere or link/somewhere or ../somewhere or somewhere#anchor or http://example.com/somewhere
> > +      if (LocationMode === LocationHashbangInHtml5Url) {
> > +        // get the actual href attribute - see http://msdn.microsoft.com/en-us/library/ie/dd347148(v=vs.85).aspx
>
> > +        // TODO check browser is in standards mode
> > +        var href = elm[0].getAttribute('href');
> > +
> > +        if (href.indexOf('://' == -1)) {         // Ignore absolute URLs
> > +          if (href[0] == '/') {
> > +            // absolute path - replace old path
> > +            absHref = serverBase(absHref) + href;
> > +          } else if (href[0] == '#') {
> > +            // local anchor
> > +            absHref = serverBase(absHref) + $location.path() + href
> > +          } else {
> > +            // relative path - join with current path
> > +            var stack = $location.path().split("/"),
>
> We really need test cases verifying this (actually, test cases verifying
> every unit of functionality added in this patch!), but especially this
> branch.
>
> Please add test cases for this, I'm happy to help if you need assistance.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/angular/angular.js/pull/6421/files#r11047283>
> .
>