简体   繁体   中英

Joomla 3.x: How to allow underscore in menu item aliases

Unfortunately, Joomla 3.x replaces underscore in menu item alias with hyphen .

How can I allow underscore? [without sh404SEF].

I don't see it in libraries/joomla/filter/output.php (as the page Use underscore (_) in joomla menu alias says).

In that file there is the line:

$str = preg_replace('/(\s|[^A-Za-z0-9\-])+/', '-', $str);

Put _ between z and 0

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM