Silverstripe 3.1.2 is modifying anchor links

后端 未结 2 1578

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)

提交回复
热议问题