--- loncom/auth/lonroles.pm 2011/09/09 16:34:41 1.261 +++ loncom/auth/lonroles.pm 2011/10/25 15:15:02 1.263 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # User Roles Screen # -# $Id: lonroles.pm,v 1.261 2011/09/09 16:34:41 bisitz Exp $ +# $Id: lonroles.pm,v 1.263 2011/10/25 15:15:02 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -601,10 +601,9 @@ ENDENTERKEY if ($role =~ /^(au|ca|aa)$/) { my $redirect_url = '/priv/'; if ($role eq 'au') { - $redirect_url.=$env{'user.name'}; + $redirect_url.=$env{'user.domain'}.'/'.$env{'user.name'}; } else { - $where =~ /\/(.*)$/; - $redirect_url .= $1; + $redirect_url .= $where; } $redirect_url .= '/'; &redirect_user($r,&mt('Entering Construction Space'),