我已经将一个URL传递给res.location,该URL有另一个URL作为查询字符串,当在头文件中设置res.location时,查询字符串中的URL被编码两次。
例如, 传递给res.location的URL是,
res.location = 'http://localhost?redirect_uri=http://somepage'
预期标题: 位置:http://localhost?redirect_uri=http%3A%2F%2Fsomepage
实际标题: 位置:http://localhost?redirect_uri=http%253A%252F%252Fsomepage
欢迎任何解决此问题的建议。谢谢