diff --git a/src/Entity/Field.php b/src/Entity/Field.php index 4e4c11d9b..6c9baaf67 100644 --- a/src/Entity/Field.php +++ b/src/Entity/Field.php @@ -93,6 +93,7 @@ public function __call(string $key = '', array $arguments = []) // If value is field, return getTwigValue so that {{ value }} // is parsed as html, rather than __toString() which is escaped $value = $value[$key]; + return $value instanceof self ? $value->getTwigValue() : $value; } diff --git a/templates/_base/layout.html.twig b/templates/_base/layout.html.twig index c1c43a539..a42cc87a8 100644 --- a/templates/_base/layout.html.twig +++ b/templates/_base/layout.html.twig @@ -28,7 +28,7 @@ {# Setting the labels and their localisations that are used in the sidebar-menu. #} {% set labels = { 'about.bolt_documentation': 'about.bolt_documentation'|trans, - 'action.view_site': 'action.view'|trans ~ ' website', + 'action.view_site': 'action.view'|trans, 'action.create_new': 'action.create_new'|trans, 'general.greeting': 'general.greeting'|trans({'%name%': user_display_name}), 'action.logout': 'action.logout'|trans, diff --git a/translations/messages.en.xlf b/translations/messages.en.xlf index dcb0e82d8..38ff38cc4 100644 --- a/translations/messages.en.xlf +++ b/translations/messages.en.xlf @@ -1122,7 +1122,7 @@ action.view - View + View website