CTA BugBrowser Info Environment
To fix, replace:
$theLink = Page::getCollectionPathFromID($pageID);
$theLink = DIR_REL . $theLink;
$theLink = Loader::helper('navigation')->getLinkToCollection(Page::getByID($pageID));
I am having this exact problem, but unfortunately your fix hasn't resolved the issue. Has this worked for anyone else? I went directly inside the view.php file for the CTA. I'm not a coder, but I am pretty sure I was in the right spot.