title: I worked on a tutorial application and I followed a guide to host it on gh-pages. Why is the routing messed up now?
body: <p>Source code for app: <a href="https://github.com/shardul-shah/first-angular-app" rel="nofollow noreferrer">https://github.com/shardul-shah/first-angular-app</a></p>
  <p>It works on gh-pages... kind of (<a href="https://shardul-shah.github.io/first-angular-app/" rel="nofollow noreferrer">https://shardul-shah.github.io/first-angular-app/</a>)</p>
  <p>Problems:</p>
  <ol>
  <li>When going to this, <a href="https://shardul-shah.github.io/first-angular-app/" rel="nofollow noreferrer">https://shardul-shah.github.io/first-angular-app/</a> , the URL automatically changes to <a href="https://shardul-shah.github.io/first-angular-app/first-angular-app/" rel="nofollow noreferrer">https://shardul-shah.github.io/first-angular-app/first-angular-app/</a></li>
  <li>Refresh of <a href="https://shardul-shah.github.io/first-angular-app/first-angular-app/" rel="nofollow noreferrer">https://shardul-shah.github.io/first-angular-app/first-angular-app/</a> (or any refresh for that matter on any route) leads to white, empty screen.</li>
  <li>The app works when I click &quot;my store&quot; in <a href="https://shardul-shah.github.io/first-angular-app/first-angular-app/" rel="nofollow noreferrer">https://shardul-shah.github.io/first-angular-app/first-angular-app/</a> , but not without that.</li>
  </ol>
  <p>I saw the JS console, and I see I am getting problems with the route as well. I can see there are problems with the routing, but I can't for the life of me figure out how to fix it. I already tried 4 times to rebuild and reserve using ng and ng's gh-pages command line utility, but it didn't fix it. My inexperience with Angular and routing in it is hurting.</p>
  <p>Can anyone please tell me how to fix this routing so the app behaves like normal and works from <a href="https://shardul-shah.github.io/first-angular-app/" rel="nofollow noreferrer">https://shardul-shah.github.io/first-angular-app/</a> ?</p>
  <p>FYI, it works on stackblitz, where I originally worked on the app:
  <a href="https://angular-n2rqei.stackblitz.io" rel="nofollow noreferrer">https://angular-n2rqei.stackblitz.io</a> and <a href="https://stackblitz.com/edit/angular-n2rqei?file=src/app/app.module.ts" rel="nofollow noreferrer">https://stackblitz.com/edit/angular-n2rqei?file=src/app/app.module.ts</a></p>
  <p>Thanks!
  <img src="https://i.stack.imgur.com/x2C5e.jpg" alt="GitHub settings (pages)" /></p>