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!

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to