lundi 27 mars 2017

Mean Stack Application: Page does not rerender on refresh, but returns only JSON

I'm currently designing a MEAN.js web application, and for some reason, whenever I refresh the page on a route or window.reload, it does not rerender the page, but only returns the JSON file found at that current route.

For example, when I'm at localhost:8080/people:

If I click here from the main page, I get enter image description here

but if I hit refresh or reload the page for whatever reason i get enter image description here

Does anyone have any idea why this is happening and how to fix it? Thanks!




Aucun commentaire:

Enregistrer un commentaire