Skip to content

Commit 3e7f54d

Browse files
committed
resolved #85: made returnUrl working for MPA.
1 parent 1686cd4 commit 3e7f54d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/AbpCompanyName.AbpProjectName.WebMpa/Views/Account/Login.cshtml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<div id="LoginArea" class="row">
1414
<div class="col-lg-12">
1515
<div class="well bs-component">
16-
<form id="LoginForm" class="form-horizontal" action="@(Url.Action("Login", "Account"))?returnUrl=@(Model.ReturnUrl)" method="POST">
16+
<form id="LoginForm" class="form-horizontal" action="@(Url.Action("Login", "Account"))" method="POST">
1717
<fieldset>
1818
<legend>@L("LogIn")</legend>
1919

@@ -49,7 +49,8 @@
4949
</div>
5050
</div>
5151
</div>
52-
52+
53+
<input id="ReturnUrl" type="hidden" name="ReturnUrl" value="@Model.ReturnUrl" />
5354
<input id="ReturnUrlHash" type="hidden" name="returnUrlHash" />
5455

5556
<div class="form-group">

src/AbpCompanyName.AbpProjectName.WebMpa/Views/Account/Login.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
usernameOrEmailAddress: $('#EmailAddressInput').val(),
1414
password: $('#PasswordInput').val(),
1515
rememberMe: $('#RememberMeInput').is(':checked'),
16-
returnUrlHash: $('#ReturnUrlHash').val()
16+
returnUrlHash: $('#ReturnUrlHash').val(),
17+
returnUrl: $('#ReturnUrl').val()
1718
})
1819
})
1920
);

0 commit comments

Comments
 (0)