joomla/joomla-cms — pull request #640 by Bakual (2013-01-05 22:06:09+00:00)
Title: Creating proper SEF suffixes in menu items

As it is currently, all menu items will have the SEF suffix ".html" even if the format parameter would ask otherwise.
This commit adds the format parameter to the link before it's passed to JRoute, but only if the format parameter is set and SEF suffixes are enabled.

It's a small change to fix a longstanding bug with SEF suffixes.