fix console redirect for pathless endpoints

fixes #26