Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Silverstripe 3.1.2 is modifying anchor links

I tried to build tabs with jquery. But i recognized that my links

<a href="#tab-1">Tab 1</a>

are converted to

<a href="/#tab-1">Tab 1</a>

Because of the Slash at the beginning the tabs doesn't work. Why is Silverstripe modifiying my anchor links and how can I stop it from doeing this??

like image 802
invictus Avatar asked Dec 13 '13 07:12

invictus


1 Answers

On 2.4er setup I set in _config.php

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

not tested with 3.x and the yml config layer

like image 64
munomono Avatar answered Sep 22 '22 16:09

munomono