0
theedge created
Hi,
I am following [https://www.aspnetzero.com/Documents/Getting-Started#spa-or-mpa]) and it says:
As an alternative, you can open AccountController under the Web project and replace all redirections to the Application/Index with redirections to the Mpa/Home/Index.
Can you explain this a bit more as I am unsure what I have to change exactly?
2 Answer(s)
-
0
Bump!
-
0
Hi,
AspNetZero solution contains two version of same application. One is single page, other is multi page. Multi page application is under Mpa area.
By default Account controller redirects you to single page application.
If you want to redirect users to multi page version by default, you need to change some part of account controller.
For example change this
return Redirect(Url.Action("Index", "Application"));
to
return Redirect(Url.Action("Index", "Home", new {area="Mpa"}));
or change this
returnUrl = Url.Action("Index", "Application");
to
returnUrl = Url.Action("Index", "Home", new {area="Mpa"})
I hope this helps.