In my AngularJS route configuration, I have set up the following paths:
moduleA.config(function($routeProvider){
$routeProvider.
when('/A',{templateUrl:'A.jsp'}).
when('/B',{templateUrl:'B.jsp'}).
when('/C',{templateUrl:'C.jsp'}).
otherwise({
redirectTo: '/',
templateUrl: 'A.jsp'
});
});
However, I am facing an issue where after being redirected to view #/C and then refreshing the page, it does not redirect back to the default view. Instead, it stays on view C. I want to ensure that the default page is displayed after every page refresh without manually changing the URL to the base URL. Is there a more efficient way to achieve this using AngularJS? Thank you for your help.