redirect can take object of queries