I am not sure, if I got you right. You can get the linked page of the CTA in the edit mode of the CTA or simply by clicking on it.
The easiest wey to get the ID of the page/blog post, is to simply click the CTA button and in your HubSpot menu go to "edit page". The ID is inside of your URL then: app.hubspot.com/pages/<your_portal>/editor/<your_id>/content
Sorry, I wasn't clear, but I was referring to the HUBL code. If I use a CTA field in the code and generate the CTA by using the CTA id, I only get the redirect URL that eventually leads to the real URL.
For example, the function that generates the CTA: cta('CTA_BUTTON_ID'). I could get a lot of data from it by using pprint, but no page id nor the absolute URL
I wanted to see if it's possible to get the page id or the absolute URL to that page from this CTA field.
I finally managed to do it with JavaScript since I figured that CTA button generates an attribute that's called cta_dest_link and from there you can read the absolute URL.
However, couldn't manage to find a solution using HUBL
Hey, @MKukanjac👋 Thanks for the interesting question. Let's see if we can get the conversation going — @Kevin-C@FabianRichter@Anton have you spent any time digging around in CTAs? Thank you for taking a look! — Jaycee