In AngularJS, when you use $location.path()
and pass the same URL as the current one, it does not reload the page and controller. However, if you add an extra slash at the end of the URL like this:
$location.path('/currentURL/');
it forces a reload to occur. What is happening behind the scenes that allows you to achieve this with just an additional slash?