+ Start a Discussion
SFDC n12SFDC n12 

canvas help

Hi,

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
Ashish_SFDCAshish_SFDC
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.

http://abhisheksubbu.com/2013/03/19/force-com-canvas-cross-domain-redirection-lessons-learnt/


Regards,
Ashish
July 9, 20