User tests: Successful: Unsuccessful:
Pull Request for Issue #20199.
Fix bag with ?layout= in com_content category link after #19681
If you have this bug, apply the patch
ModernPark Bloghttp://localhost/joomla387/index.php/using-joomla/extensions/components/content-component/article-category-blog?layout=Link was /category
Now link /category?layout= or /category?layout=templatelayout if override com_content category view
| Status | New | ⇒ | Pending |
| Category | ⇒ | Front End com_content |
| Labels |
Added:
?
|
||
@brianteeman I, too, failed to reproduce the bug on the newly installed joomla, can only suggest creating an alternative / override layout for the test
But I can provide details of why #19681 caused a bug
In the past, PR layout turned out so
$jinput = JFactory::getApplication()->input;
$layout = $jinput->get('layout');
if ($layout !== '')
{
$link .= '&layout=' . $layout;
}
What led to the following results
layout = NULL NULL !== ''layout = templatelayout And for the correct formation of a link layout = template:layout With a colon as a separatorThis code will correctly add layout to the link
$layout = JFactory::getApplication()->input->get('layout', '', 'string');
if ($layout)
{
$link .= '&layout=' . $layout;
}
In fact in this PR, I just corrected what was added by the filter 'string' and changing the check
ModernPark BlogPark Blog link to see URL:http://localhost/joomla387/index.php/using-joomla/extensions/components/content-component/article-category-blog?layout=I have tested this item
I have tested this item
| Status | Pending | ⇒ | Ready to Commit |
RTC
| Labels |
Added:
?
|
||
In fact, I would delete the addition of layout to the link, because personally I think it is not correct #19681 PR.
Because if I choose another for another language I choose another layout. Maybe I need to have another layout.
If there are those who think the same way, Say and I just delete the layout from the formation of the link in this PR
| Status | Ready to Commit | ⇒ | Closed |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-04-22 10:37:23 |
| Closed_By | ⇒ | Septdir |
Never mind the code style has anyone replicated the bug as I could not
On 18 Apr 2018 10:14 pm, "Tomasz Narloch" notifications@github.com wrote: