I have a common layout with a button for opening a specific page :
<?php echo $this->Html->link('My cart', array('controller' => 'shop', 'action' => 'cart'), array('escape' => false)) ?>
This link will redirect to a page /shop/cart
. But if I'm in a page using another controller I have a problem. Example : I'm on a page depending on UsersController, my URL is : customer/
and now if I'm clicking on 'My Cart' link, URL is : customer/shop/cart
which is an error.
How can I clear my URL?
Thanks.