I created a angularjs app using yeoman and below is my config
.config(function ($stateProvider, $locationProvider) {
$stateProvider
.state('state', {
....
})
$locationProvider.html5Mode(true);
});
and inindex.html
I have added <base href="/">
inside <head>
as given in this solution
When I run the app for the first time using
grunt serve
Am able to navigate to all urls without #
.
But when I copy and paste the same url in different tab or
refreshing any path its showing
Cannot GET /path_to_my_app
How to solve this?