Tag links not working!

Permalink
Hi

I have a problem with the Tags block in a template I'm building.

The link on the tags are not working correct - the path given in the code below is being ignored.
<?php  
                           $bt = BlockType::getByHandle('tags');
                           $c1 = Page::getByID('/search');
                           $bt->controller->set('title', t('Tags'));
                           $bt->controller->set('target', $c1);                     
                           $bt->render();                        
                        ?>


Is this something I can fix somewhere?

The script outputs: [PAGE URL]/tag/watch and not /search/tag/watch

brianskov