My routes are defined in the following way:
$routeProvider
.when('/settings', { templateUrl: 'settingsTemplateURL', controller: settingsCtrl })
.when('/profile', { templateUrl: 'profileTemplateURL', controller: profileCtrl })
.otherwise({ redirectTo: '/settings' });
I access my website using addresses like localhost/testapp/#/settings or localhost/testapp/#/profile and so on.
The issue arises when I type in the address: localhost/testapp. At this point, the otherwise function redirects me to localhost/testapp#/settings where the slash after 'testapp' is missing. This discrepancy occurred after updating AngularJS from version 1.0.7 to 1.2.13.
Could someone provide assistance with this problem? Thank you in advance. Sincerely, David