Silverstripe 3.1.2 is modifying anchor links

后端 未结 2 1556

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

Tab 1

are converted to



        
相关标签:
2条回答
  • 2021-01-18 03:20

    SSViewer::setOption() is deprecated in 3.2

    Use one of the following examples to set rewrite_hash_links

    config.yml

    SSViewer:
      rewrite_hash_links: false
    

    _config.php

    Config::inst()->update('SSViewer', 'rewrite_hash_links', false);
    

    (http://api.silverstripe.org/3.1/class-SSViewer.html#_setOption)

    0 讨论(0)
  • 2021-01-18 03:35

    On 2.4er setup I set in _config.php

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

    not tested with 3.x and the yml config layer

    0 讨论(0)
提交回复
热议问题