This is happening because angular is expecting that url to be relative to the root of the domain, not to the location of your app. In other words, it is expecting it to be relative to moroshko.github.io
not moroshko.github.io/seekdeck
.
You can solve this easily by adding a base
element to your html page, and setting its href
attribute to the path you want the root of your app to be (in your case /seekdeck/
)
Put the following tag inside the <head>
of your html page:
<base href="/seekdeck/" />
Also make sure you are setting html5mode(true)
in $locationProvider
.
There's an excellent blog post about it HERE