When i try to add a hash in the url like :
<a href="#whatever">whatever</a>
or
window.location.hash = 'whatever';
it appends a '/' before the hash world
=> www.mysite.com/#whatever
but it should be
=> www.mysite.com#whatever
I know this is caused by angular, but i can find a way to prevent it.
Is there a way to prevent this behaviour ?
Thanks
Turn on html5 mode:
.config(function($locationProvider) {
$locationProvider.html5Mode(true);
})
See more detail here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With