diff --git a/src/app/frontend/controllers/CustomerController.php b/src/app/frontend/controllers/CustomerController.php index 8318c11..090290b 100644 --- a/src/app/frontend/controllers/CustomerController.php +++ b/src/app/frontend/controllers/CustomerController.php @@ -485,7 +485,7 @@ class CustomerController extends \controllers\ControllerBase { if( !$this->session->get('isAuth') ) { - return $this->response->redirect([ 'for' => 'customer_login', 'language' => $this->lang_name ]); + return $this->response->redirect([ 'for' => 'customer_login', 'language' => $this->lang_name ],true,301); } $customer = $this->models->getCustomers()->getCustomer( $this->session->get('id') ); diff --git a/src/app/frontend/views/index.php b/src/app/frontend/views/index.php index 839f9a2..afb9961 100644 --- a/src/app/frontend/views/index.php +++ b/src/app/frontend/views/index.php @@ -6,11 +6,14 @@ seoUrl->setUrl($this->url->get($page_url_for_sort['3']))."?all=1'>"; + echo "seoUrl->setUrl($this->url->get($page_url_for_sort['3']))."?all=1'>"; } if (preg_match("/sort-/i", $_SERVER['REQUEST_URI'])) { echo ""; } + if(preg_match("/customer_login/i", $_SERVER['REQUEST_URI'])){ + echo ""; + } ?>