Jump to:

23493 Posts in 18996 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Redirects in Silverstripe

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 996 Views
  • janieblue
    Community Member
    1 Post

    Redirects in Silverstripe Link to this post


    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

  • MarcusDalgren
    Community Member
    288 Posts

    Re: Redirects in Silverstripe Link to this post

    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.

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.