Logging out of elgg 1.8?

Hello!

 

So, I'm trying to update our themes to make them work with elgg 1.8 (per users request), and I'm facing this problem. If a user was logged in on 1.7.x versions, I use this code to send him to dashboard:

<?php

if (isloggedin()) forward('pg/dashboard/');

?>

However, now on 1.8.x if you logout it will redirect you to the dashboard, instead of the homepage. I've been looking throught the facebook theme for 1.8 and the structure but can't figure it out.

 

Help please?

 

I hope this is the right group to post?

Feedback and Planning

Feedback and Planning

Discussions about the past, present, and future of Elgg and this community site.