I am using window.parent.location.href by which i am able to achieve the current page(https://stackoverflow.com/questions/ask) complete url but my intention is to get the uuid of that page which is present in other url i.e (https://stackoverflow.com/questions/ask/id=_abcdes123)
var parentLink = (window.parent.location.href).toString();
if (parentLink.includes("play")) {
projectAreaContextId = '_FpM0wL8DEeOhU53HggnQSg'; //uuid for play
} else if(parentLink.includes("complay")) {
projectAreaContextId = '_t44MZaySEeSZm-Ey-wkoZw'; //uuid for complay
}
if you see my above code what i am trying is to get the current page url dynamically but projectareacontextid is hardcoded which i want to get dynamically as well but as i mentioned the uuid of the project area is not present in the current page url but in next page url, so is there any way to achieve so, also is there any rest api to get project area uuid?