World is now on Opti ID! Learn more
AI OnAI Off
World is now on Opti ID! Learn more
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