Angular-cli: routing does not work on GitHub Pages

Created on 3 Jun 2016  路  5Comments  路  Source: angular/angular-cli

  1. OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
    any
  2. Versions. Please run ng --version. If there's nothing outputted, please run in a Terminal:
    any
  3. Repro steps. Was this an app that wasn't created using the CLI? What change did you
    do on your code? etc.
    The app was fully created with the angular-cli
  4. The log given by the failure. Normally this include a stack trace and some
    more information.
    Error 404
  5. Mention any other details that might be useful.
    I have an Angular 2 App deployed via GitHub Pages (using the CLI) here, whether you refresh the page or navigate using deep linking it does not work and an _Error 404_ from GitHub is given. I have used the CLI to generate the _routes_ and used the _new_ router _(not the router-deprecated)_.
easy (hours) 1 (urgent) bufix

All 5 comments

I'll pick this up. There is a solution in https://github.com/angular/angular-cli/issues/41#issuecomment-208456482 but I haven't implemented it yet.

@filipesilva that solves the weird Github 404 Issue, but it does not fix deep linking, like when navigating to https://kutyel.github.io/famous-painters/painter/3, for example. I bet there is something missing...

@kutyel perhaps the missing bit now is related to https://github.com/angular/angular-cli/issues/989#issuecomment-224171440?

@filipesilva you are right, I will keep track of the changes made to the new router, thanks! 馃憤

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jmurphzyo picture jmurphzyo  路  3Comments

brtnshrdr picture brtnshrdr  路  3Comments

purushottamjha picture purushottamjha  路  3Comments

delasteve picture delasteve  路  3Comments

MateenKadwaikar picture MateenKadwaikar  路  3Comments