Response.redirect doesn't change address bar url in Node.js

I'am using express js to create a web app. In some get requests I redirect user to another page whenever he clicks the link:

a( data-icon='home', data-transition='fade', data-role='button', data-theme='a',href='/logout') Home

The following code handles the logout: // app.get('/logout'...)

logout: function(req, res) {
    req.logout();
    res.redirect('/');
}

This actually log out the user but address bar url still points to http://localhost:3000/logout . What is wrong with this?

Thanks,

app.get('/logout', function(req, res){ 
    res.redirect('/');
});

See more https://github.com/visionmedia/express/blob/master/lib/response.js#L488