add query string while redirecting