1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

Correct way to use Angular localize subpath

Discussão em 'Angular' iniciado por guokai, Julho 20, 2025.

  1. guokai

    guokai Guest

    I am developing a multilingual application using the localize subpath feature in Angular 19.2. However, after building the project, the file structure appears as follows.

    dist

    |-- en-us

    |-- index.html

    |-- other files


    |-- ja

    |-- index.html

    |-- other files


    After deploying it to an App Service, when I accessing the site, a 404 error occurs. I believe the issue is likely due to the absence of an index.html file in the root directory. When I directly access https://my-site/en-us/index.html, the sign-in page does appear. However, since the URL includes en-us/, various API-related issues arise beyond that point.

    I've seen information suggesting that using the subpath feature should automatically handle routing issues, but I'm not sure whether I'm using it incorrectly. Could you please advise me on the correct way to use subpaths to properly resolve routing issues?

    Continue reading...

Compartilhe esta Página