Comp-490-SeniorProject / site

MIT License
0 stars 1 forks source link

404 when refreshing page #40

Closed MarkKoz closed 2 years ago

MarkKoz commented 2 years ago

To reproduce:

  1. Open the website
  2. Click on "Product" in the navigation bar.
  3. Observe the browser's address changed to http://127.0.0.1:8000/app-product
  4. Refresh the page
  5. Observe a 404 error

I'm not sure how to fix this in the backend, since Django has no awareness of Angular's routing. All Django does for routing is route the root to the Angular app. Is it necessary for the frontend to even change the URL?

MarkKoz commented 2 years ago

Fixed by bf7c14316f7092a5752646ef545105c82bc7089b in #25