Browse Source
Merge pull request #7154 from abpframework/liangshiwei/template-patch-1
Set returnUrl for Web.Host account management button
pull/7155/head
maliming
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Web.Host/Menus/MyProjectNameMenuContributor.cs
|
|
@ -58,7 +58,8 @@ namespace MyCompanyName.MyProjectName.Web.Menus |
|
|
|
|
|
|
|
|
if (currentUser.IsAuthenticated) |
|
|
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)); |
|
|
context.Menu.AddItem(new ApplicationMenuItem("Account.Logout", l["Logout"], url: "~/Account/Logout", icon: "fa fa-power-off", order: int.MaxValue - 1000)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|