Browse Source
Merge pull request #6778 from abpframework/liangshiwei/template-patch-1
Set returnUrl for blazor account manage button
pull/6788/head
Ahmet Çotur
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
5 additions and
3 deletions
-
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/Menus/MyProjectNameMenuContributor.cs
-
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/wwwroot/appsettings.json
|
|
|
@ -59,11 +59,10 @@ namespace MyCompanyName.MyProjectName.Blazor.Menus |
|
|
|
context.Menu.AddItem(new ApplicationMenuItem( |
|
|
|
"Account.Manage", |
|
|
|
accountStringLocalizer["ManageYourProfile"], |
|
|
|
$"{identityServerUrl.EnsureEndsWith('/')}Account/Manage", |
|
|
|
$"{identityServerUrl.EnsureEndsWith('/')}Account/Manage?returnUrl={_configuration["App:SelfUrl"]}", |
|
|
|
icon: "fa fa-cog", |
|
|
|
order: 1000, |
|
|
|
null, |
|
|
|
"_blank")); |
|
|
|
null)); |
|
|
|
} |
|
|
|
|
|
|
|
return Task.CompletedTask; |
|
|
|
|
|
|
|
@ -1,4 +1,7 @@ |
|
|
|
{ |
|
|
|
"App": { |
|
|
|
"SelfUrl": "https://localhost:44307" |
|
|
|
}, |
|
|
|
"AuthServer": { |
|
|
|
"Authority": "https://localhost:44305", |
|
|
|
"ClientId": "MyProjectName_Blazor", |
|
|
|
|