Getting startpage as CurrentPageModel on product page

Since categories and products don’t have their own pages in the CMS, current page will always be the start page for those.

You can inject the RouteRequestInfoAccessor and cast its .RouteRequestInfo.Data as ProductPageData to determine where you are.

Here are some older threads asking something similar: