How to run your project without hash in Angular [closed]

Discussão em 'Angular' iniciado por davood beheshti, Fevereiro 2, 2025.

  1. I have an Angular project which is running for almost 4 years and in this project we used hash(#) in the routing part, now for some reason the hash(#) needs to be removed.

    In this part, I removed the config useHash that I had previously given to routing [​IMG]

    Now my project works as expected without # and there is no problem, and it also moves between the links correctly

    But as soon as my page is refreshed, no page comes up and no request goes to the server, only a series of errors appear in the console and NetWork.

    netWork errors : [​IMG]

    console errors : [​IMG]

    Continue reading...

Compartilhe esta Página