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.
AI OnAI Off
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.
You can use PageRouteHelper
var pageRouteHelper = ServiceLocator.Current.GetInstance<PageRouteHelper>(); var pageTypeName = pageRouteHelper.Page.PageTypeName;
How to get Page type name from the current block View (CSHTML file), if the block is placed in the content area of a page