Jump to:

22997 Posts in 11853 Topics by 2828 members

General Questions

SilverStripe Forums » General Questions » <a> not working properly

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: 365 Views
  • leafchild
    Avatar
    Community Member
    41 Posts

    <a> not working properly Link to this post

    To make fancybox works I had to add the code below to _config.php file

    SSViewer::setOption('rewriteHashlinks', false);

    That cause Anchor tag - link to in same page not working properly.
    ex)

    <a href="#aaa">Link</a>
    ....
    <a name="aaa">Jump to here</a>

    Now #aaa not take me to "Jump to here" in the same page but take me to mydomain.com/index.php/#Contact

    What is the best way to fix this issue?

    Thanks

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