I implemented an API for my Craft 2 site,
One of the requests requires me to open a webview where the user can fill in some forms.
What happens is that he enters some info from the app that will be sent to my controller where he will receive an html form that will be displayed in a webview.
Now, I want to set the redirect url for the first form he sent(from the app) but craft requires the redirect input to be hashed.
I am really confused and I don't know how to configure this.
What I am thinking of is to add the redirect post param using the EVENT_BEFORE_REQUEST, but is it the correct way? if not, how am I supposed to do this?