+ Start a Discussion
SFDC n12SFDC n12 

canvas help


I want to redirect to a specific thrd party site through canvas without any intermediate tool like heroku,

Let me know how to do it.

Thanks in Advance
Hi Bharath,

See the blog below,

whenever we are working with web application redirects inside a Canvas App, we should be setting the javascript property window.top.location to affect the redirection. The URL to be set on window.top.location can be generated and set from server side.

It is at this point that I remembered that the Force.com Canvas documentation(page no.22) says that Force.com provides client side proxy written in Javascript to handle Cross Domain XML Http Requests. We can also develop and deploy our own proxies as a part of the SDK.

We should not use client side proxy for same domain calls. For this, we can rely on the web application language capability to handle self domain redirects.


July 9, 20