I am working on EPiServer. I am creating a plugin to edit content of current page. I am trying to get the data from the code following:
var pageRouteHelper = EPiServer.ServiceLocation.ServiceLocator.Current.GetInstance<IPageRouteHelper>();
var currentPage = pageRouteHelper.Page;
but every time the currentPage returns me the content of the start page. What is missing here and I cannot get the page I have open on screen content?