/** * Generate a Mautic redirect/passthrough URL * * @param Redirect $redirect * @param array $clickthrough * @param bool $shortenUrl * * @return string */ public function generateRedirectUrl(Redirect $redirect, $clickthrough = array(), $shortenUrl = false) { $url = $this->buildUrl('mautic_url_redirect', array('redirectId' => $redirect->getRedirectId()), true, $clickthrough, $shortenUrl); if ($shortenUrl) { $url = $this->urlHelper->buildShortUrl($url); } return $url; }
/** * @param Redirect $redirect * @param array $clickthrough * * @return string */ public function generateRedirectUrl(Redirect $redirect, $clickthrough = array()) { $url = $this->buildUrl('mautic_page_trackable', array('redirectId' => $redirect->getRedirectId()), true, $clickthrough); return $url; }
/** * {@inheritDoc} */ public function getRedirectId() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getRedirectId', array()); return parent::getRedirectId(); }