We have migrated a site collection using a third party tool(the question is not related to third party tool) and observed that in the migrated site, "Pages" library pages point to an altogether different site collection's page layouts.
So i am trying to fix it using a powerhsell script. What I am looking to do is, read the URL of the page layout that is assigned to a particular page and check whether it is the correct site collection.
However, I can only get the "ServerRelativeUrl" of the page layout assigned to a page. I cannot find the absolute url property. I get the $page object of a page in the library
But there is no property for absoluteurl.