Don't miss out Virtual Happy Hour this Friday (April 26).
Try our conversational search powered by Generative AI!
AI OnAI Off
Don't miss out Virtual Happy Hour this Friday (April 26).
This will give you the current page:
var pageRouteHelper = EPiServer.ServiceLocation.ServiceLocator
.Current.GetInstance<EPiServer.Web.Routing.PageRouteHelper>();
var currentPage = pageRouteHelper.Page;
I need some way to get the current PageReference from within a render action - view