Account ui logout callback and redirection using IronRouter

Hello,

I am trying to achieve this basic functionality which is redirect a user on logout.

The callback is fired but the redirection does not work (no errors, no nothing). When logging out it seems that the route is re-run because the onBeforeAction else condition is triggered.

Route definition

onBeforeAction:function(){
    if(Meteor.userId())
    {
      this.next();
    }
    else {
      console.log('user not loggin, redirect');
      this.redirect('/');
    }

Log out callback:

accountsUIBootstrap3.logoutCallback = function(error) {
  if(error) console.log("Error:" + error);
  console.log('callback called');
  Router.go('home');
}

Any ideas on this ?