ViewComponent CurrentPage Model

Previously when we used child actions we would have access to the “CurrentPage” IPublishedContent, but I can’t seem to find this on View Componenets in V9

I call my View Components from my Master template and could just pass the Model as a parameter, but some of my pages have hijacked controllers which convert the IPublishedController to a ViewModel, so it’ll be missing all the IPublishedContent I need from the CurrentPage model

Is there an easy way of accessing the “CurrentPage” IPublishedContent on V9 View Components, just like we did in child actions on V8?


This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/108309-viewcomponent-currentpage-model