diff --git a/aspnet-core/framework/mvc/LINGYUN.Abp.AspNetCore.Mvc.Wrapper/LINGYUN/Abp/AspNetCore/Mvc/Wrapper/WrapResultChecker.cs b/aspnet-core/framework/mvc/LINGYUN.Abp.AspNetCore.Mvc.Wrapper/LINGYUN/Abp/AspNetCore/Mvc/Wrapper/WrapResultChecker.cs index 31bedc28c..44a92cd03 100644 --- a/aspnet-core/framework/mvc/LINGYUN.Abp.AspNetCore.Mvc.Wrapper/LINGYUN/Abp/AspNetCore/Mvc/Wrapper/WrapResultChecker.cs +++ b/aspnet-core/framework/mvc/LINGYUN.Abp.AspNetCore.Mvc.Wrapper/LINGYUN/Abp/AspNetCore/Mvc/Wrapper/WrapResultChecker.cs @@ -129,7 +129,7 @@ public class WrapResultChecker : IWrapResultChecker, ISingletonDependency return true; } var url = BuildUrl(context.HttpContext); - return !Options.IgnorePrefixUrls.Any(urlPrefix => urlPrefix.StartsWith(url)); + return !Options.IgnorePrefixUrls.Any(urlPrefix => url.StartsWith(urlPrefix)); } protected virtual bool CheckForController(ControllerActionDescriptor controllerActionDescriptor)