1: Enable Joomla SEF.
2: Create Component with router file
Display page
Throws error - 404 Page not found
/Applications/MAMP/htdocs/jbeta/libraries/src/Router/Router.php:154
Joomla 4 - beta 4
Mamp server
PHP - 7.3.8
Database - Mysql - 5.7.26
Error coming from line:
if (\strlen($uri->getPath()) > 0)
{
throw new RouteNotFoundException(Text::_('JERROR_PAGE_NOT_FOUND'));
}
All details are being parsed correctly and if I remove the error check then it navigates to the page correctly. In the parsing the 'path' details are not being removed. I've checked back over the process in the latest version of Joomla 3. Everything behaves the same, although the error check code is different. It's
if (strlen($uri->getPath()) > 0 && array_key_exists('option', $vars)
&& ComponentHelper::getParams($vars['option'])->get('sef_advanced', 0))
{
throw new RouteNotFoundException('URL invalid');
}
Is this a bug, or am I missing some step somewhere?
Labels |
Added:
?
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-09-16 06:10:21 |
Closed_By | ⇒ | paulkosciecha |