0
safi created
Hi
Can we show manage profile page in same page without show in new tab. Please see the below screenshot for the same.
- ABP Framework version: v4.4.3
- UI type: Blazor
- DB provider: EF Core
- Tiered (MVC) or Identity Server Separated (Angular): no
- Exception message and stack trace:
- Steps to reproduce the issue:"
Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
2 Answer(s)
-
0
I think you can do it by changing the target.
In the
*.MenuContributor.csclass inside theNavigationfolder, you can change thetargetin theConfigureUserMenuAsyncmethod as follows:private async Task ConfigureUserMenuAsync(MenuConfigurationContext context) { var accountStringLocalizer = context.GetLocalizer<AccountResource>(); var identityServerUrl = _configuration["AuthServer:Authority"] ?? ""; context.Menu.AddItem(new ApplicationMenuItem( "Account.Manage", accountStringLocalizer["MyAccount"], $"{identityServerUrl.EnsureEndsWith('/')}Account/Manage?returnUrl={_configuration["App:SelfUrl"]}", icon: "fa fa-cog", order: 1000, customData: null, target: "_self" ).RequireAuthenticated()); context.Menu.AddItem(new ApplicationMenuItem( "Account.SecurityLogs", accountStringLocalizer["MySecurityLogs"], $"{identityServerUrl.EnsureEndsWith('/')}Account/SecurityLogs?returnUrl={_configuration["App:SelfUrl"]}", icon: "fa fa-cog", order: 1001, null).RequireAuthenticated()); await Task.CompletedTask; } }Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
I think you can do it by changing the target.
In the
*.MenuContributor.csclass inside theNavigationfolder, you can change thetargetin theConfigureUserMenuAsyncmethod as follows:private async Task ConfigureUserMenuAsync(MenuConfigurationContext context) { var accountStringLocalizer = context.GetLocalizer<AccountResource>(); var identityServerUrl = _configuration["AuthServer:Authority"] ?? ""; context.Menu.AddItem(new ApplicationMenuItem( "Account.Manage", accountStringLocalizer["MyAccount"], $"{identityServerUrl.EnsureEndsWith('/')}Account/Manage?returnUrl={_configuration["App:SelfUrl"]}", icon: "fa fa-cog", order: 1000, customData: null, target: "_self" ).RequireAuthenticated()); context.Menu.AddItem(new ApplicationMenuItem( "Account.SecurityLogs", accountStringLocalizer["MySecurityLogs"], $"{identityServerUrl.EnsureEndsWith('/')}Account/SecurityLogs?returnUrl={_configuration["App:SelfUrl"]}", icon: "fa fa-cog", order: 1001, null).RequireAuthenticated()); await Task.CompletedTask; } }Thanks working fine.
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

