Codeigniter 2.1 - redirect to current url after logout
How can I redirect to current url after logout?

HTLM for logout?

    <a href="<?php echo base_url() ?>korisnik/logout">Logout</a>

Controller function:

function logout() { 
        $this->session->sess_destroy();
        redirect(base_url()); 
    }
Codeigniter 2.1 - redirect to current url after logout
===

How can I redirect to current url after logout?

HTLM for logout?

    <a href="<?php echo base_url() ?>korisnik/logout">Logout</a>

Controller function:

function logout() { 
        $this->session->sess_destroy();
        redirect(base_url()); 
    }