Aww sorry, I found the answer. I should write my links with an array: <?php echo $html->link(__($post['Category']['title'], true), array('controller'=> 'posts', 'action'=>'category/'.$post['Category'] ['id'])); ?>
thanks for your tolerance of my stupid questions! Take care, Neil On Feb 1, 11:54 am, Neil <[EMAIL PROTECTED]> wrote: > So I have this code on every page(via an element) that holds links to > different categorys of my blog: > <?php echo $html->link(__($post['Category']['title'], true), '/posts/ > category/'.$post['Category']['id']); ? > > Now if I am at:http://localhost/cake/posts/, orhttp://localhost/cake/ > ect.. it works fine. But if I click on the link, and then click on > another category link fromhttp://localhost/cake/posts/category/1I > get this:http://localhost/cake/posts/category/cake/posts/category/1 > > why does it do this? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---