I have a problem with custom URLs and CakePHP pagination.

The URL to my news page is www.site.de/de/news

Via CakePHP routing, it goes to the News controller and index action.

CakePHP pagination now generates these kind of URLs: 
www.site.de/news/index/page:2

The link works - but due to SEO reasons I want the URL to have the
same base as before - like this: www.site.de/de/news/page:2

After reading the documentation I added the following line to change
the URL structure of the pagination links:

$paginator->options(array('url' => '/de/news'));

Unfortunately, the result is this: www.site.de/de/news/index/de/news/page:2


What do I have to change, to tell CakePHP's pagination to only use "/
de/news" as link base -- or just use the current URL as base and only
add "page:2" at the end?

Thanks for your help!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to