Skip to content

Commit 6e3fe7c

Browse files
authored
Update _LoginPartial.Identity.cshtml with correct returnUrl (#49553)
* Update _LoginPartial.Identity.cshtml with correct returnUrl * Remove method=post since it gets added by the form tag helper automatically
1 parent 2d3a078 commit 6e3fe7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Pages/Shared/_LoginPartial.Identity.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<a class="nav-link text-dark" asp-area="Identity" asp-page="/Account/Manage/Index" title="Manage">Hello @User.Identity?.Name!</a>
1010
</li>
1111
<li class="nav-item">
12-
<form class="form-inline" asp-area="Identity" asp-page="/Account/Logout" asp-route-returnUrl="@Url.Page("/", new { area = "" })" method="post" >
12+
<form class="form-inline" asp-area="Identity" asp-page="/Account/Logout" asp-route-returnUrl="@Url.Page("/Index", new { area = "" })">
1313
<button type="submit" class="nav-link btn btn-link text-dark">Logout</button>
1414
</form>
1515
</li>

0 commit comments

Comments
 (0)