Append query string to url

后端 未结 6 1596
[愿得一人]
[愿得一人] 2021-02-05 08:15

I have a callback url string params[:callback] and I need to append a query string \"&result=true\" and redirect the user. The better way I found o

6条回答
  •  臣服心动
    2021-02-05 08:35

    You can try with merge

    request.parameters.merge({:result => true})

    this will add your parameter to the ones already defined.

提交回复
热议问题