150 $this->processParseRules($uri, self::PROCESS_AFTER);
151
152 // Check if all parts of the URL have been parsed.
153 // Otherwise we have an invalid URL
154 if (\strlen($uri->getPath()) > 0) {
155 throw new RouteNotFoundException(Text::_('JERROR_PAGE_NOT_FOUND'));
156 }
157
158 if ($setVars) {
159 $this->setVars($uri->getQuery(true));
160