Angular UI Router is ignoring HTML5Mode(false), and it's rendering links in a way that can't be bookmarked or directly landing upon:
app.js:
$stateProvider
.state('search', {
url: '/search',
views: {
'main.wrapper': {
templateUrl: 'views/search.html',
controller: 'SearchCtrl'
},
'navbar': { templateUrl: 'views/search.navbar.html' }
});
$locationProvider.html5Mode(false);
foo.html:
<a ui-sref="search">Search</a>
Becomes
<a href="/search">Search</a>
Shouldn't it detect it's not on HTML5 Mode and return
<a href="/#/search">Search</a>