added query string to redirect route if it exist