Angular 17 404 Throwing Error After Page Refresh

Discussão em 'Angular' iniciado por fighterpilot, Novembro 21, 2024.

  1. fighterpilot

    fighterpilot Guest

    after I build my Angular 17 project and upload it to hosting, when I press F5 on my page, it redirects to a 404 page. I couldn't solve this situation in Angular 17.

    I can view the component I crossed out without any problems, but when I press F5 on that page, it sends me to the 404 page.

    According to the resources I researched, I was supposed to use LocationStrategy and HashLocationStrategy, but I didn't know how to use it with Angular 17.

    screenshots:

    app.routes.ts [​IMG]

    app.config.ts

    [​IMG]

    Continue reading...

Compartilhe esta Página