I'm trying to set up my Angular app on GitHub pages at http://moroshko.github.io/seekdeck.
The Angular routes are defined in application.js:
<html ng-app="SeekDeck">
<head>
...
<script src="scripts/application.js"></script>
...
</head>
<body>
<div ng-view></div>
</body>
</html>
application.js is loaded from /seekdeck/scripts, as expected.
My app routes look like this:
// Part of application.js
$routeProvider
.when("/", {
templateUrl: "templates/dashboard/dashboard.html",
...
})
...
When Angular tries to get the dashboard.html template, it tries to load it from /templates/dashboard rather than /seekdeck/templates/dashboard, and therefore it cannot find it.
Any ideas why is this happening, or how could I fix this?