[-] MO : fixed bad redirection in trackingfront #PSCFV-8378

This commit is contained in:
Damien Metzger committed 2013-07-11 18:03:39 +02:00
1 parent d8a444335f
commit 184515a27c
1 file changed
+2 -2
+2 -2
View File
@@ -61,7 +61,7 @@ class TrackingFront extends Module
{ {
unset($this->context->cookie->tracking_id); unset($this->context->cookie->tracking_id);
unset($this->context->cookie->tracking_passwd); unset($this->context->cookie->tracking_passwd);
Tools::redirect('modules/trackingfront/stats.php'); Tools::redirect(Tools::getShopDomain(true, false).__PS_BASE_URI__.'modules/trackingfront/stats.php');
} }
elseif (Tools::isSubmit('submitLoginTracking')) elseif (Tools::isSubmit('submitLoginTracking'))
{ {
@@ -89,7 +89,7 @@ class TrackingFront extends Module
{ {
$this->context->cookie->tracking_id = $tracking_id; $this->context->cookie->tracking_id = $tracking_id;
$this->context->cookie->tracking_passwd = $passwd; $this->context->cookie->tracking_passwd = $passwd;
Tools::redirect('modules/trackingfront/stats.php'); Tools::redirect(Tools::getShopDomain(true, false).__PS_BASE_URI__.'modules/trackingfront/stats.php');
} }
} }
$this->smarty->assign('errors', $errors); $this->smarty->assign('errors', $errors);