I have not found a reasonable way to check the path inside the view, but this may work:
view:
<a link-href="path/to/same/location">same location</a>
directive:
app.directive('linkHref', ['$location', '$route', function ($location, $route) { return { restrict: 'A', link: function ($scope, $element, $attrs) { $element.bind('click', function () { if ($location.$$url == $attrs.activeLink) { $route.reload(); } else { $location.path($attrs.activeLink); }); } }; }]);
Reyraa
source share