joomla/joomla-cms — pull request #4461 by mbabker (2014-10-05 13:49:36+00:00)
Title: Ensure vars are always set if the default menu item is retrieved (Ref #4183)

This solves the edge case reported in #4183 where the redirect for a contact form being the site's homepage does not route as expected. It was found that when the default menu item is being pulled, the vars from the query are not being set to the class object, which causes the redirect fail.