Angular 8 和 asp.net mvc 路由不工作

Angular 8 and asp.net mvc routing is not working

我是使用 asp.net mvc 的 Angular 8 的新手。 面临路由问题,

(1) 申请主页url:http:///localhost/dashboard 它在 bootstrap table 中包含一些型号的所有详细信息,当单击带有组名称的型号时,它将路由到 https://localhost/dashboard details?Groupname=xyz&ModelNo=2300 这工作正常.

(2) 在这个阶段一切都很好但是当刷新浏览器时显示错误 作为,

找不到此本地主机页面 没有找到网址https://localhost/dashboard details?Groupname=xyz&ModelNo=2300 HTTP 错误 404

我试过的 (1) 添加位置策略和哈希策略 - 没有用 当在刷新 IIS 上添加时 windows 被显示。

(2) 使用 url 重写显示 HTTP ERROR 404 的相同错误。

需要帮助解决这个问题

花了将近3天的时间得到了解决方案,需要更改base href, 从
得到提示 https://github.com/angular/angular/issues/11046.