detect and add search param into new redirect uri