You can set the router to use the previous route. For example this way in your controller:
lastRoute = $route.current;
$scope.$on('$locationChangeSuccess', function (e) {
if (window.location.href.match(/\/view/) || window.location.href === '/') {
$route.current = lastRoute;
}
});
When $route.current
does not change, full page refresh is not triggered. You might wish to do some regexp checks to keep your URL space tidy to prevent refresh, but it's a small price to pay.