#3851: rewrited code of redirectors