I have login page and after successful login it redirects to other page with this code
return $this->response->redirect(array('for'=>'products'));
But it redirects to /products/products instead of /products. I tried to change to
return $this->response->redirect('products');
with the same result. Route:
$router->add('/products', array(
'controller'=>'products',
'action'=>'index'
))->setName('products');