Skip to content

Commit

Permalink
Merge pull request #7154 from abpframework/liangshiwei/template-patch-1
Browse files Browse the repository at this point in the history
Set returnUrl for Web.Host account management button
  • Loading branch information
maliming authored Jan 12, 2021
2 parents 05a966e + 8ef37b5 commit c8e036d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ private Task ConfigureUserMenuAsync(MenuConfigurationContext context)

if (currentUser.IsAuthenticated)
{
context.Menu.AddItem(new ApplicationMenuItem("Account.Manage", accountStringLocalizer["ManageYourProfile"], $"{identityServerUrl.EnsureEndsWith('/')}Account/Manage", icon: "fa fa-cog", order: 1000, null, "_blank"));
context.Menu.AddItem(new ApplicationMenuItem("Account.Manage", accountStringLocalizer["ManageYourProfile"],
$"{identityServerUrl.EnsureEndsWith('/')}Account/Manage?returnUrl={_configuration["App:SelfUrl"]}", icon: "fa fa-cog", order: 1000, null, "_blank"));
context.Menu.AddItem(new ApplicationMenuItem("Account.Logout", l["Logout"], url: "~/Account/Logout", icon: "fa fa-power-off", order: int.MaxValue - 1000));
}

Expand Down

0 comments on commit c8e036d

Please sign in to comment.