Hi! I'm having this warning when I'm passing an input parameter in RedirectToURL. I know this is not a best practice. What's the best workaround in this ? I can't reference or connect the screen in this module because it's a foundation module (_TH) and my target screen is a end user module, will be another bad practice. Thanks!
Hi @Ronald ,
As Tousif said you can use GetEntryURL() or if you want to remove the warning so create one local variable and assign your url in this variable and pass this local varibale to the external url.
For Ex- Local varibale Name- URL
URL ="https://"+GetRequestDomain.Domain+"/ORPAMS/JobApplication?JobPostingId="+JobPostingId
pass this URL variable to external url function.
Thanks,
Arun Rajput
Is the second option a good practice ?
Yes
May be this link helps ?
https://success.outsystems.com/documentation/11/reference/errors_and_warnings/warnings/open_redirect_warning/
Vani
will check it thanks!
Hello
You can use the GetEntryURL() function from the HttpRequestHandler extension to get your URL and pass the parameters and then redirect through an ExternalSite for instance.
Also you can refer here -https://success.outsystems.com/documentation/11/reference/outsystems_apis/httprequesthandler_api/
Thanks & Regards
Tousif khan