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.
When view=article, Factory::getApplication()->input should not inherit the [layout] variable from the category parameters.
But currently the [layout] variable is inherited in the article view from the category parameters.
Joomla 4.3.2
Labels |
Added:
No Code Attached Yet
|
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.
Labels |
Added:
bug
|
I don't understand your issue. Could you describe what exactly you are doing?