Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

<a> not working properly


Go to End


724 Views

Avatar
leafchild

Community Member, 41 Posts

5 May 2011 at 5:59am

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