Jump to:

2011 Posts in 1436 Topics by 620 members

Form Questions

SilverStripe Forums » Form Questions » Director::redirect('page#anchor') - IE ignores everything from hash on

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

Page: 1
Go to End
Author Topic: 1052 Views
  • katja
    Avatar
    Community Member
    46 Posts

    Director::redirect('page#anchor') - IE ignores everything from hash on Link to this post

    Hello,

    This is not directly part of forms, but as the redirect is most often used in conjunction with forms I guess, I will put it here.

    I have added something like Director::redirect('page#anchor') at the end of a form action, and when I submit the form in Internet Explorer it just totally ignores the # and everything after it (It gets deleted in the URL in the browser's address line as well). If I just have a link with a # in it, that works fine in IE. It happens only when I use Director::redirect().

    Does anybody have an explanation what is happening there, and how I could go round this problem?

    Thanks,
    Katja

    1052 Views
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.