/** * Get the custom URL of the Tracking Code * * @return string URL */ protected function getCustomUrl() { // Prettify image popup page URL (AJAX/JSON?method=... > /record/[id]/image if ($this->calledFromImagePopup() && !empty($this->params['recordUrl'])) { return $this->params['recordUrl'] . '/image'; } return parent::getCustomUrl(); }