#17237: Multiple clicks of Sign-in link cause multiple ReturnUrl values to be appended

--HG--
branch : dev
This commit is contained in:
Dave Reed 2011-01-31 16:36:23 -08:00
parent 8c1b1e4c31
commit 9adfa13a56

View File

@ -10,6 +10,6 @@
@Html.ActionLink("Dashboard", "Index", new { Area = "Dashboard", Controller = "Admin" })
</span>
} else {
<span class="user-actions">@Html.ActionLink(T("Sign In").ToString(), "LogOn", new { Controller = "Account", Area = "Orchard.Users", ReturnUrl = Context.Request.RawUrl })</span>
<span class="user-actions">@Html.ActionLink(T("Sign In").ToString(), "LogOn", new { Controller = "Account", Area = "Orchard.Users", ReturnUrl = (Request.QueryString["ReturnUrl"] ?? Request.RawUrl) })</span>
}
</div>