How to remove ASP.NET MVC controller name from angular route

I have an ASP.NET MVC login page and a login button, it redirects to another page associated with angular. After logging in, the URL redirects me to something like below
<br / "> http: // localhost: 5083 / Home # / home

I need to remove the ASP MVC controller name ("Home") from Url, how can I do this?

enter image description here

Angular Routing Configuration enter image description here

Configure ASP.NET MVC Routing enter image description here

The location of the login page is AccountContrller-> Index.cshtml and the login button in HomeController → index.cshtml

+4
source share
2

MVC, - , localhost: 5083, mvc , angularjs.

+1

, MVC (Home/Index.cshtml), Base Href /Home, angular2 /Home, / URL-, Index.cshtml :

<head>
<base href="/Home/"
0

Source: https://habr.com/ru/post/1651631/


All Articles