How to avoid error 404 on refresh with angular app on IIS that contains special characters...

Discussão em 'Angular' iniciado por Kurtis92, Setembro 10, 2024.

  1. Kurtis92

    Kurtis92 Guest

    I have an Angular App (V17), hosted on IIS. I have a route https://mysite/myapp/b%2fBP1SQsgyE%3D I can reach it the first time but I can't refresh. The server respond with 404. The issue comes from the special character %2f that is interpreted as a /, so instead of reaching "myapp" with the encrypted param, it tries to go to "myapp/b/2Bp......".

    How can I have an URL with encoded characters so ?

    I already have the redirection web.config, so I can refresh if there is no encoded character like "%2". I don't want to use param with "?param=". I want to keep route logic.

    Continue reading...

Compartilhe esta Página