21278 Posts in 5728 Topics by 2599 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 816 Views |
-
Redirects in Silverstripe

19 December 2010 at 5:54am
Hello,
I am trying to build a Faceboop app in Silverstripe. The problem is that pages redirect with Header("Location: xxxx"); I get a redirect loop in FB, because a FB app is in a iframe and redirects need to be sent to _top. To do this I would need to redirect with javascript: top.location.href = 'xxx'; I see that all redirects in Silverstripe are heandled in SS_HTTPResponse in the core of the Sapphire.
What would be the most elegant solution for me to implement the redirect to target "_top" problem?kind regards, Jana
-
Re: Redirects in Silverstripe

21 December 2010 at 1:05am
Could you perhaps explain abit more about why you end up in a redirect loop?
If you're looking to redirect in PHP then you have Director::redirect() for that.
| 816 Views | ||
|
Page:
1
|
Go to Top |


