233 // Check if all parts of the URL have been parsed.
234 // Otherwise we have an invalid URL
235 if (strlen($uri->getPath()) > 0 && array_key_exists('option', $vars)
236 && ComponentHelper::getParams($vars['option'])->get('sef_advanced', 0))
237 {
238 throw new RouteNotFoundException(\JText::_('JERROR_PAGE_NOT_FOUND'));
239 }
240
241 return array_merge($this->getVars(), $vars);
242 }
243