In a Confluence user macro, I have access to the Tiny URL of a Confluence page. I'd like to get the ID of that Page, ultimately so I can iterate the descendents of that Page. So, something like:
#set($url='http://localhost/x/9_PXEg')
#set($page=$GET_PAGE($url))
#set($descendents=$pageManager.getDescendents($page))
## use $descendents...
I *thought* that the final six characters of the tiny url were the page id, Base64 encoded. But this does not work:
#set($url='http://localhost/x/9_PXEg')
#set($base64=$stringUtils.substringAfterLast($url, "/"))
#set($idString=$generalUtil.base64Decode($base64))
$idString
The Base64 decoder cannot handle the six character string, even though it was generated by the same instance of Confluence. So it seems it's not simply a Base64 number.