Skip to content

onContentPrepare() not called for link description in category view #645

@fwilleke80

Description

@fwilleke80

Steps to reproduce the issue

Use any content plugin that implements onContentPrepare() in a weblink‘s description (you know, stuff like {toc}). Then open the category page.

Expected result

The content plugin should do their magic.

Actual result

The content plugins don’t do anything with the weblink‘s description.

System information (as much as possible)

Joomla 5

Additional comments

Can easily be fixed by changing the line

<?php echo $item->description ?>

to

<?php echo \Joomla\CMS\HTML\HTMLHelper::_('content.prepare', $item->description); ?>

in com_weblinks/category/default_items.php. In revision 6738e6e, this would be in line 234.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions