?
avatar paulkosciecha
paulkosciecha
16 Sep 2020

Steps to reproduce the issue

1: Enable Joomla SEF.
2: Create Component with router file

Expected result

Display page

Actual result

Throws error - 404 Page not found
/Applications/MAMP/htdocs/jbeta/libraries/src/Router/Router.php:154

System information (as much as possible)

Joomla 4 - beta 4
Mamp server
PHP - 7.3.8
Database - Mysql - 5.7.26

Additional comments

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?

avatar paulkosciecha paulkosciecha - open - 16 Sep 2020
avatar joomla-cms-bot joomla-cms-bot - change - 16 Sep 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 16 Sep 2020
avatar paulkosciecha paulkosciecha - change - 16 Sep 2020
The description was changed
avatar paulkosciecha paulkosciecha - edited - 16 Sep 2020
avatar paulkosciecha paulkosciecha - change - 16 Sep 2020
Status New Closed
Closed_Date 0000-00-00 00:00:00 2020-09-16 06:10:21
Closed_By paulkosciecha
avatar paulkosciecha paulkosciecha - close - 16 Sep 2020

Add a Comment

Login with GitHub to post a comment