Remove backward compatibility of CMS Kit Page URL

pull/17800/head
Enis Necipoglu 2 years ago
parent bd91b4d528
commit cab9e031bb
No known key found for this signature in database
GPG Key ID: 1EC55E13241E1680

@ -73,13 +73,16 @@ public class CmsKitPublicWebModule : AbpModule
options.KeyPrefix = "CmsKit:";
});
Configure<AbpEndpointRouterOptions>(options =>
if (GlobalFeatureManager.Instance.IsEnabled<PagesFeature>())
{
options.EndpointConfigureActions.Add(context =>
Configure<AbpEndpointRouterOptions>(options =>
{
context.Endpoints.MapCmsPageRoute();
options.EndpointConfigureActions.Add(context =>
{
context.Endpoints.MapCmsPageRoute();
});
});
});
}
}
public override void PostConfigureServices(ServiceConfigurationContext context)

@ -1,4 +1,5 @@
@page "/pages/{slug}"
@page "/cmskit/page"
@addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI.Bootstrap
@using Volo.CmsKit.Contents
@using Volo.CmsKit.Web.Pages.CmsKit.Components.Contents

Loading…
Cancel
Save