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.

General Questions /

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

<a> not working properly


Reply


429 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