Enis Necipoglu
2 years ago
No known key found for this signature in database
GPG Key ID: 1EC55E13241E1680
2 changed files with
3 additions and
6 deletions
-
modules/cms-kit/src/Volo.CmsKit.Public.Web/CmsKitPublicWebModule.cs
-
modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKitHomePageRouteValueTransformer.cs
|
|
|
@ -1,18 +1,16 @@ |
|
|
|
using Microsoft.AspNetCore.Mvc.RazorPages; |
|
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
|
using Volo.Abp; |
|
|
|
using Volo.Abp.AspNetCore.Mvc.Localization; |
|
|
|
using Volo.Abp.Ui.LayoutHooks; |
|
|
|
using Volo.Abp.AutoMapper; |
|
|
|
using Volo.Abp.Caching; |
|
|
|
using Volo.Abp.GlobalFeatures; |
|
|
|
using Volo.Abp.Http.ProxyScripting.Generators.JQuery; |
|
|
|
using Volo.Abp.Modularity; |
|
|
|
using Volo.Abp.Ui.LayoutHooks; |
|
|
|
using Volo.Abp.UI.Navigation; |
|
|
|
using Volo.Abp.VirtualFileSystem; |
|
|
|
using Volo.CmsKit.GlobalFeatures; |
|
|
|
using Volo.CmsKit.Localization; |
|
|
|
using Volo.CmsKit.Pages; |
|
|
|
using Volo.CmsKit.Public.Web.Menus; |
|
|
|
using Volo.CmsKit.Public.Web.Pages.CmsKit.Shared.Components.GlobalResources.Script; |
|
|
|
using Volo.CmsKit.Public.Web.Pages.CmsKit.Shared.Components.GlobalResources.Style; |
|
|
|
|
|
|
|
@ -1,5 +1,4 @@ |
|
|
|
using System; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using Microsoft.AspNetCore.Http; |
|
|
|
using Microsoft.AspNetCore.Mvc.Routing; |
|
|
|
using Microsoft.AspNetCore.Routing; |
|
|
|
@ -27,7 +26,7 @@ public class CmsKitHomePageRouteValueTransformer : DynamicRouteValueTransformer, |
|
|
|
if (await FeatureChecker.IsEnabledAsync(CmsKitFeatures.PageEnable)) |
|
|
|
{ |
|
|
|
var page = await PagePublicAppService.FindDefaultHomePageAsync(); |
|
|
|
if (page != null) |
|
|
|
if (page is not null) |
|
|
|
{ |
|
|
|
values = new RouteValueDictionary(); |
|
|
|
|
|
|
|
|