andresjosehr-portfolio icon indicating copy to clipboard operation
andresjosehr-portfolio copied to clipboard

404 error on refreshing the page

Open Ts-A opened this issue 10 months ago • 0 comments

404-error

On refreshing the page with the English / Espanol option, the server throws a page not found error. This could be because the server is trying to fetch data from the /en or /es endpoint and cannot find that endpoint.

It could be solved by enabling hashing with routing from the angular side.

For reference: https://codecraft.tv/courses/angular/routing/routing-strategies/

Ts-A avatar Mar 27 '24 04:03 Ts-A