see https://github.com/rafrex/spa-github-pages
Also update the router so that it should be able to handle paths from GitHub pages