We recommend using the url helper for creating links.

Controller:

$this->view->uplevelLink = $this->_helper->url('action', 'controller');

View:

<a href="<?php echo $this->url(array(
    'controller' => 'index',
    'action' => 'index',
)); ?>">Link</a>