Reloading the page gives wrong GET request with AngularJS HTML5 mode
I want to enable HTML5 mode for my app. I have put the following code for the configuration, as shown here: return app.config([‘$routeProvider’,’$locationProvider’, function($routeProvider,$locationProvider) { $locationProvider.html5Mode(true); $locationProvider.hashPrefix = ‘!’; $routeProvider.when(“https://stackoverflow.com/”, { templateUrl: ‘/views/index.html’, controller: ‘indexCtrl’ }); $routeProvider.when(‘/about’,{ templateUrl: ‘/views/about.html’, controller: ‘AboutCtrl’ }); As you can see, I used the $locationProvider.html5mode and I changed all my … Read more