diff --git a/templates/entry/comment/view.html.twig b/templates/entry/comment/view.html.twig index 5538e09e5..7ad9accad 100644 --- a/templates/entry/comment/view.html.twig +++ b/templates/entry/comment/view.html.twig @@ -46,11 +46,23 @@ }) }}" data-controller="subject-list" data-action="{{- DYNAMIC_LISTS is same as V_TRUE ? autoAction : manualAction -}}"> - {{ component('entry_comment', { - comment: comment.root ?? comment, - showEntryTitle: false, - showMagazineName: false, - showNested: true, - }) }} + {% set entryComment = comment.root ?? comment %} + {% if entryComment is defined and entryComment is not null %} + {{ component('entry_comment', { + comment: entryComment, + showEntryTitle: false, + showMagazineName: false, + showNested: true, + }) }} + {% else %} +
+ + {{ 'back'|trans }} + + {{ 'comment_not_found'|trans }} +
+