I'm encountering a peculiar issue with my Angular v1.6.5 setup. My routes seem to be acting strangely, for example:
$routeProvider
.when('/', { templateUrl: 'myTemplate', controller: 'myController', method: 'myMethod' })
}
When my URL is like myUrl.com/sectionName, I expect it to be:
myUrl.com/sectionName/#/
But instead, it appears as:
myUrl.com/sectionName#/
Although I can still retrieve data and my controllers work fine on this route, it leads to other issues (such as the inability to detect the onhashchange event).
I've looked into similar problems online, but most solutions relate to extra characters like '!'. While I have already used
$locationProvider.hashPrefix('');
in my configuration, my problem seems to stem from something different.
If anyone can offer assistance on this matter, I would greatly appreciate it.