Redirect to correct location after teacher invitation