So I want to provide similar redirection logic as we have on drupal.org and redirection to dashboard to logged in users but also allow access to the /front page. I can't seem to get it to redirect ONLY on front page. Here is the current code I have:
function MYMODULE_init(){
global $user;
if(drupal_is_front_page() && user_access('view own dashboard')){
drupal_goto('user/'.$user->uid.'/dashboard');
}
}
It is also redirecting the page itself to the dashboard still and not simply the <root>