There seem to be various cool ways https://blog.kozakana.net/2015/10/redirect_to-with-parameter/
However, this time in my situation (because there was only one parameter)
redirect_url = ENV["HOST"] + "/hoge?h=" +hash value
redirect_to redirect_url
It was enough to generate it as a string. For your reference, if you are worried about something similar.
Recommended Posts