This repository was archived by the owner on Apr 12, 2024. It is now read-only.
html5 mode with mismatching base href causes "TypeError: Cannot read property 'replace' of undefined" error in location.js #13565
Milestone
Looking at the latest version of location.js (https://github.com/angular/angular.js/blob/4412fe238f37f79a2017ee7b20ba089c0acd73e9/src/ng/location.js)
If the tag does not match the actual href, $$parseLinkUrl will miss all the conditions and rewrittenUrl will not be defined, which means this.$$parse will not be called and $$absUrl will not be set.
Later on line 902 (
angular.js/src/ng/location.js
Line 902 in 4412fe2
TypeError: Cannot read property 'replace' of undefined
The text was updated successfully, but these errors were encountered: