Angular force an undesired exclamation mark in url Angular force an undesired exclamation mark in url angularjs angularjs

Angular force an undesired exclamation mark in url


I solved it by adding this:

$locationProvider.hashPrefix('');


//Client side Configuration to pretty url//Remove # from url

$locationProvider.html5Mode(true);

and add this to your index.html <base href="/"></base>