We are updating to html5Mode. It appears that everything is fixed. All the old links work, which is great, but if the user tries to go to the plain domain with the /#/
at the end, it triggers an infinite digest. Has anyone seen this before? Is there a setting I can apply that will force angular to rerender to the newer link without causing an error?
.config(['$locationProvider', function ($locationProvider) {
$locationProvider.html5Mode(true)
}])
angular.js:13424 Error: [$rootScope:infdig] 10 $digest() iterations reached. Aborting!
Watchers fired in the last 5 iterations: []
http://errors.angularjs.org/1.5.3/$rootScope/infdig?p0=10&p1=%5B%5D
at angular.js:68
at Scope.$digest (angular.js:16907)
at Scope.$apply (angular.js:17133)
at done (angular.js:11454)
at completeRequest (angular.js:11652)
at XMLHttpRequest.requestLoaded (angular.js:11593)
I have added the base tag to the head, and provisioned both our development, QA and production servers to serve the static files and for all other links to serve the index.
Works: domain.com/# Redirects to: domain.com
Works: domain.com/#/path Redirects to domain.com/path
Also works domain.com/#/ (eventually, anyhow, but not until after generating a few infinite digest errors)