【发布时间】:2016-06-27 10:02:31
【问题描述】:
我有这种情况。我正在为我的应用程序付款,网址类似于http://example.com/payment?referenceId=123。在此之前,我需要检查身份验证,如果用户未登录,则需要使用 redirect_url 概念。我有这个用于 redirect_url 的 url:http://example.com/login?redirect_url=URL
由于我在源 url 中也有查询参数,所以我不能将该 url 用作 redirect_url。我该怎么做?
【问题讨论】:
-
你能解释一下“由于我在源 url 中也有查询参数,我不能将该 url 用作 redirect_url。我该怎么做?”
-
在源 url 我有这个查询参数:
referenceId=123。如果我把所有东西放在一起,它就像http://example.com/login?redirect_url=http://example.com/payment?referenceId=123。如果我们访问它,我们将丢失 referenceId 并且浏览器将其重定向到http://example.com/login?redirect_url=http://example.com/payment。但我也需要referenceId