No Code Attached Yet bug
avatar AndySDH
AndySDH
27 Jun 2023

Steps to reproduce the issue

Factory::getApplication()->input

contains the [layout] with value 'blog' even for an article, and not just for a category.

That is weird, because [layout] = 'blog' is a category parameter, not an article parameter.

The layout parameter should only appear in the Factory::getApplication()->input if a custom layout is set as an article level (with a dedicated menu item for that article layout). It should not be inherited from the category layout value, it makes no sense.

Expected result

When view=article, Factory::getApplication()->input should not inherit the [layout] variable from the category parameters.

Actual result

But currently the [layout] variable is inherited in the article view from the category parameters.

System information (as much as possible)

Joomla 4.3.2

avatar AndySDH AndySDH - open - 27 Jun 2023
avatar joomla-cms-bot joomla-cms-bot - change - 27 Jun 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 27 Jun 2023
avatar AndySDH AndySDH - change - 27 Jun 2023
The description was changed
avatar AndySDH AndySDH - edited - 27 Jun 2023
avatar AndySDH AndySDH - change - 27 Jun 2023
The description was changed
avatar AndySDH AndySDH - edited - 27 Jun 2023
avatar AndySDH AndySDH - change - 27 Jun 2023
The description was changed
avatar AndySDH AndySDH - edited - 27 Jun 2023
avatar chmst
chmst - comment - 28 Jun 2023

I don't understand your issue. Could you describe what exactly you are doing?

avatar AndySDH
AndySDH - comment - 28 Jun 2023

The issue is that when requesting Factory::getApplication()->input when in an article view, the [layout]="blog" variable is included in the array of variables (inherited from the category view).
It shouldn't, because [layout]="blog" is a category input var, not an article input var.

avatar AndySDH AndySDH - change - 29 Jun 2023
The description was changed
avatar AndySDH AndySDH - edited - 29 Jun 2023
avatar Hackwar Hackwar - change - 24 Aug 2023
Labels Added: bug
avatar Hackwar Hackwar - labeled - 24 Aug 2023

Add a Comment

Login with GitHub to post a comment