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
parent
commit
441d30a03c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/Menus/MyProjectNameMenuContributor.cs
  2. 3
      templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/wwwroot/appsettings.json

5
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/Menus/MyProjectNameMenuContributor.cs

@ -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;

3
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/wwwroot/appsettings.json

@ -1,4 +1,7 @@
{
"App": {
"SelfUrl": "https://localhost:44307"
},
"AuthServer": {
"Authority": "https://localhost:44305",
"ClientId": "MyProjectName_Blazor",

Loading…
Cancel
Save