Added call of res.encodeRedirectURL()