Redirect from root and not page itself 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() &amp;&amp; user_access('view own dashboard')){
    drupal_goto('user/'.$user-&gt;uid.'/dashboard');
  }
}


It is also redirecting the page itself to the dashboard still and not simply the &lt;root&gt;
I think you should be using hook_user_login instead of hook_init.