This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
undefined TypeError: Cannot call method 'replace' of undefined in Android Browser #4044
Closed
Description
In Android browser I use $location.path('/login');
to route. Example:
MainMenuCtrl.$inject = ['$scope', '$location'];
function MainMenuCtrl($scope, $location) {
$scope.doFileWeeklyClaim = function() {
$location.path('/login');
};
};
When I navigate away to say google.com and press back when clicking on a link the routing becomes unavailable and I get this error from line 3268 from angular.js version 1.0.8:
undefined TypeError: Cannot call method 'replace' of undefined
Everything stops working at that point.