keep query params on redirect

To keep query parameters on redirect, they need to be added explicitly
to the redirect target url, otherwise they get lost. This needs to be
done, whenever the redirect_to method is called and it is possible, that
there are query parameters already present.