Sim
Well-known member
- Affected version
- 2.1
The header phrase shown for media in the approval queue links to an album - even when the media is in a category.
Checking the template
The HTML generated is literally as follows:
Checking the template
approval_item_xfmg_media
- approval_queue_macros
- item_message_type
... from line 24 we can see that the header phrase which generates the message above assumes it is an album and attempts to link to it - thus generating an invalid link for a media item in a category.
Code:
arg-headerPhraseHtml="{{ phrase('xfmg_media_x_posted_in_album_y', {
'mediaLink': link('media', $content),
'mediaTitle': $content.title,
'albumLink': link('media/albums', $content.Album),
'albumTitle': $content.Album.title
}) }}"
The HTML generated is literally as follows:
HTML:
posted in album <a href="/media/albums/"></a>