Added boolReplace paramter to redirect