Location html5 fix

This commit to master - https://github.com/angular/angular.js/commit/58ef32308f45141c8f7f7cc32a6156cd328ba692 - introduced a regression where deep link Html5 urls were being rewritten with the part after the appBase being removing.
For example:

```
http://localhost:8000/build/docs/api/ng.directive:input.number
```

was always being rewritten to

```
http://localhost:8000/build/docs/
```

This was evident when trying to run the documentation on a local machine. These commits fix that.