Angular application not loading with parameters when reloading with IIS URL Rewrite

后端 未结 1 1635
忘掉有多难
忘掉有多难 2021-01-16 02:47

I have an Angular 8 application configured in my local IIS. I have also installed and configured IIS URL Rewrite. The issue is that the application is loading fine if I acce

相关标签:
1条回答
  • 2021-01-16 03:40

    <base> tag is important. It shows where is the "start" url part of your application. try rendering base as <base href="/BcpApp/" />. this will make all calls like <script src="/scripts/myscript.js"> as well as angular routing to be prepended with '/BcpApp/' url part

    0 讨论(0)
提交回复
热议问题