【发布时间】:2017-01-11 19:37:44
【问题描述】:
我有一个在 .NET 项目之上运行的 angular2 应用程序。我们通过http://example.com/index/app 访问该应用程序。
但是在 angular2 应用程序开始运行并出现后,我们的 URL 在浏览器中被重写为:例如http://example.com/#/dashboard。
尝试直接转到http://example.com/index/app/#/dashboard 重定向或更精确地将我们的网址重写为http://example.com/#/dashboard 并显示应用程序。
如何防止这种行为不断拥有完整的 URI? http://example.com/index/app/#/dashboard Angular2 部分只是# 之后的一个。
【问题讨论】:
标签: asp.net-mvc angular asp.net-core asp.net-core-mvc