folks stucked with the issue where we are exposing visualforce page to the third party application and where on button click on third party application it will redirect to salesforce through single sign on.meanwhile passing paremeters to salesforc the url like below htpps://domaainname/apex/pagename?param=param1&returl=value¶m2=value2¶m3=value3 but once redirect to salesforce url is breaking and redirecting to the below url htpps://domaainname/apex/pagename?param=param1 not able to find the debug logs why the url is trimming can some one help me what may be the root cause for this any firewall is not allowing??
closed as unclear what you're asking by Martin Lezer, glls, Derek F, battery.cord, Pranay Jaiswal Mar 7 at 16:11
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
Not an explanation of why, but here is a clean workaround, revolving around passing the parameters in as a singular, encoded parameter, ex.
This could also be performed in Apex using the
action parameter on the page, but this seems more practical to me.
// to be placed at the very top of the <apex:page/> <script> var url = window.top.location.href; var key = '?param=' var params = url.substring(url.indexOf(key)+key.length,url.length); window.top.location.href = url.substring(0,url.indexOf(key)+1) + decodeURIComponent(params); </script>