1

I am trying all possible solutions but nothing seems to work.

Our project uses nginx to route to different modules. Mine is supportui.

index.html
<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">

    <base href="./">

    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="icon" type="image/x-icon" href="favicon.ico">
  </head>
  <body>
    <app-root>Loading...</app-root>
  </body>
</html>

now when the url is /supportui or /supportui/route1 -> things work fine, since all the startup JS are downloaded from required path supportui when things work fine

now when the url is /supportui/route1/route2 -> the base becomes supportui/route1 and all the required JS try to load from supportui/route1, which doesn't exist hence the app crashes.

it crashes

Aleksey Solovey
  • 4,083
  • 3
  • 13
  • 33
Ankita
  • 159
  • 1
  • 3
  • 10

0 Answers0