AI OnAI Off
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