I am creating an AngularJs application and everything is working fine.
Yet, I am facing an issue trying to remove #!/ from my url
When I run http-server in console it throws
Available on: http://127.0.0.1:8080
Then I enter there and the url automatically changes to http://127.0.0.1:8080/#!/
I have this in my route provider
.when('/', {
templateUrl: 'galleryMap.html',
controller: 'GalleryMapController'
})
.when('/photo/:id', {
templateUrl: "detail.html",
controller: 'DetailPageController'
})
The I call the url this way
$window.location.href = /photo/3;
$window.location.href = /;
Both don't work unless their urls are written like this http://127.0.0.1:8080/#!/photo/3 http://127.0.0.1:8080/#!/
Is it possible to make it work like a normal url like this http://127.0.0.1:8080/photo/3 without that horrible tags?