Browse Source
Merge pull request #17800 from abpframework/cmskit-slug-fix
Remove backward compatible CMS kit page URLs
devnot-demo
Engincan VESKE
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
9 additions and
5 deletions
-
modules/cms-kit/src/Volo.CmsKit.Public.Web/CmsKitPublicWebModule.cs
-
modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/Public/CmsKit/Pages/Index.cshtml
|
|
|
@ -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 |
|
|
|
|