A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
search
AI OnAI Off
Hi
im having a problem with publishing pages in CMS when using CatalogRouteHelper.MapDefaultHierarchialRouter(routes, true) but all the catalogues works just fine and all the porducts/variants works good with routing using this setting. but i cant publish anything in cms..
well only on the first level, publishing and changing in the lower levels works just fine..
Error im getting:
"NetworkError: 500 Internal Server Error - http://localhost/manage/cms/Stores/contentdata/4888_7791"
we previously used the below setting which working fine but only for the items in the first catalogue.. items in the other catalogues just generates 404
we have rootcatalogue and 5 subcatalogues, the products and the variants in the first one works fine but in the other generates 404...
var contentLoader = ServiceLocator.Current.GetInstance();();();();(referenceConverter.GetRootLink()).FirstOrDefault();
var referenceConverter = ServiceLocator.Current.GetInstance
var languageSelectionFactory = ServiceLocator.Current.GetInstance
var routingSegmentLoader = ServiceLocator.Current.GetInstance
var catalog = contentLoader.GetChildren
RouteTable.Routes.RegisterPartialRouter(new HierarchicalCatalogPartialRouter(() => SiteDefinition.Current.StartPage, catalog, true, contentLoader, languageSelectionFactory, routingSegmentLoader));
anyone have any idea what could be wrong here :S?