-
Notifications
You must be signed in to change notification settings - Fork 27.4k
Angular.js 1.3-rc0 HTML5 Location and base tags #8866
Comments
@tbosch, I think that we need to make sure that the mock has a default base url set to |
accident! carry on. |
Yes, will work on this today |
Set the default value for the base tag in the mock browser to `/`, as we now always require a base tag to be present for html5 mode. Fixes angular#8866.
I've upgraded to v1.3.0-rc.1, however I am still seeing the exact same issue as @billxinli. |
@tysonnero did you upgrade both angular-mocks and angular? (a frequent occurrence lately seems to be people reporting bugs caused by using mismatched versions of angular-mocks and angular, which is why I ask) |
I'v the same problem as @tysonnero and @billxinli. Reproduced with rc-0 and rc-1, not reproduced in beta-19. |
@caitp - I did upgrade angular, angular-mocks, and all other angular libs. I opened each file to double check the version was 1.3.0-rc.1. I retried the upgrade this morning on a different box to no avail. But perhaps I'm doing something wrong. |
When the Angular.js team fixed the mock location issue, we just bumped angular-mock to master.
which made all of our tests passing again. |
Thanks guys, I had the same issue, forgot to bump |
appears to be fixed in 1.2.26, too. thanks |
I don't see this fixed on 1.2.x : angular-mocks.js |
Recently bumped Angular.js to latest 1.3-rc0 release.
Project is using ui-router with HTML5 location mode set to true.
Added the
<base>
tag inside of the<html>
tag. Like so:The routing is defined as:
However, in Karma test I am seeing:
The text was updated successfully, but these errors were encountered: