How I can remove the suffix .html in joomla 3 in my menu link even if I turn on Add URLs suffix.
I want to remove in one specific article/page only. Thank you for help.
Joomla Stack Exchange is a question and answer site for Joomla! administrators, users, developers and designers. It only takes a minute to sign up.Sign up to join this community
Note: This solution is not recommended because it hacks core Joomla library.
Assume that the alias of your menu item is
about. Open the file
and around the line #116, find this line:
if ($app->get('sef_suffix') && !(substr($route, -9) == 'index.php' || substr($route, -1) == '/'))
then replace it with this one:
if ($app->get('sef_suffix') && !(substr($route, -9) == 'index.php' || substr($route, -1) == '/') && $route != 'index.php/about')
It is obvious that you must replace
about with your menu item alias in the above line.