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?
Angular Routing Configuration
Configure ASP.NET MVC Routing
The location of the login page is AccountContrller-> Index.cshtml and the login button in HomeController → index.cshtml
MVC, - , localhost: 5083, mvc , angularjs.
, MVC (Home/Index.cshtml), Base Href /Home, angular2 /Home, / URL-, Index.cshtml :
<head> <base href="/Home/"
Source: https://habr.com/ru/post/1651631/More articles:Is it possible to declare local anonymous structures in Rust? - structКак отобразить полностраничную ошибку в Ember.js с использованием ошибок? - javascriptКак редактировать шаблоны по умолчанию django-allauth? - djangovimgrep and immediately open quickfix in split mode - vimUsing the bitwise AND operator in a filter - scalaWhat is the meaning of "exclusive" and "inclusive" when describing ranges of numbers? - algorithmWhen does it make sense to use a database for a job queue? - node.jsОтсутствие эффекта при установке endpoints.health.sensitive = false в загрузочном приводе spring - springфатальная ошибка: не удалось создать путь к набору - gitвыбор нескольких выборок в pdo - phpAll Articles