Browse Source
Merge pull request #1853 from abpframework/maliming/issue1824
Fix possible problems with UseStatusCodePagesWithReExecute.
pull/1855/head
maliming
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
0 deletions
-
modules/docs/app/VoloDocs.Web/VoloDocsWebModule.cs
|
|
|
@ -29,6 +29,7 @@ using Volo.Docs.Admin; |
|
|
|
using Volo.Docs.Localization; |
|
|
|
using VoloDocs.EntityFrameworkCore; |
|
|
|
using Localization.Resources.AbpUi; |
|
|
|
using Microsoft.AspNetCore.Http; |
|
|
|
using Microsoft.Extensions.Hosting; |
|
|
|
|
|
|
|
namespace VoloDocs.Web |
|
|
|
@ -152,6 +153,11 @@ namespace VoloDocs.Web |
|
|
|
app.UseAbpRequestLocalization(); |
|
|
|
|
|
|
|
app.UseStatusCodePagesWithReExecute("/error/{0}"); |
|
|
|
//https://github.com/aspnet/AspNetCore/issues/13715#issuecomment-528929683
|
|
|
|
app.Use((context, next) => { |
|
|
|
context.SetEndpoint(null); |
|
|
|
return next(); |
|
|
|
}); |
|
|
|
//app.UseMiddleware<GlobalExceptionHandlerMiddleware>();
|
|
|
|
|
|
|
|
app.UseMvc(routes => |
|
|
|
|