Hi,
I've a new question :) I'll briefly explain what I'm trying to achieve. Right now I have an url that looks like this.
/products/index/brand:figleaves
I want this to look like this
/brand/figleaves
By writing the following route rule I get what I want.
Router::connect('/brand/:brand/*', array('controller' => 'products', 'action' => 'index'));
Everything goes fine, but then I discovered the pagination logic has been destructed.
If I click on 'next page' I get redirected to the url /products/index/page:2
.
- it doesn't pass the brand parameter
- it redirects back to the products_controller and not to the url I defined in the route rule.
In fact I'd need this as url /brand/figleaves/page:2
.
Strange thing is if I browse to /products/index/brand:figleaves
and click on Next, then I get redirected to /brand/figleaves/page:2
. How can this be explained?
I'd appreciate some help with this :)
Kind Regards, Laurent