fix #2125 - cannot login using WebAssembly, remove granular 404 logging as it is already managed by url mapping, make IModule ReleaseVersions optional when using EF Core migrations
This commit is contained in:
@ -1,6 +1,5 @@
|
||||
using System.Net;
|
||||
using Microsoft.AspNetCore.Authentication;
|
||||
using Microsoft.AspNetCore.Authentication.OpenIdConnect;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||
using Oqtane.Extensions;
|
||||
|
@ -186,7 +186,6 @@ namespace Oqtane.Pages
|
||||
{
|
||||
if (route.PagePath != "404")
|
||||
{
|
||||
_logger.Log(LogLevel.Information, "Host", LogFunction.Other, "Page Path /{Path} Does Not Exist", route.PagePath);
|
||||
return RedirectPermanent(route.SiteUrl + "/404");
|
||||
}
|
||||
}
|
||||
|
@ -159,6 +159,11 @@ namespace Oqtane.Repository
|
||||
moduledefinition.Name = (!string.IsNullOrEmpty(moduledef.Name)) ? moduledef.Name : moduledefinition.Name;
|
||||
moduledefinition.Description = (!string.IsNullOrEmpty(moduledef.Description)) ? moduledef.Description : moduledefinition.Description;
|
||||
moduledefinition.Categories = (!string.IsNullOrEmpty(moduledef.Categories)) ? moduledef.Categories : moduledefinition.Categories;
|
||||
// manage versioning
|
||||
if (string.IsNullOrEmpty(moduledefinition.ReleaseVersions))
|
||||
{
|
||||
moduledefinition.ReleaseVersions = moduledefinition.Version;
|
||||
}
|
||||
moduledefinition.Version = moduledef.Version;
|
||||
// remove module definition from list as it is already synced
|
||||
moduledefs.Remove(moduledef);
|
||||
|
Reference in New Issue
Block a user