Virtual Happy Hour is canceled this month due to Good Friday.
Try our conversational search powered by Generative AI!
AI OnAI Off
Virtual Happy Hour is canceled this month due to Good Friday.
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