diff --git a/app/views/admin/communication/blocks/templates/persons/_show.html.erb b/app/views/admin/communication/blocks/templates/persons/_show.html.erb index 2b6412589babab7f1712846f66c49086885a8f72..bf87b08eb0021cc1fcbcb1a6e0093cc7bde3bdaf 100644 --- a/app/views/admin/communication/blocks/templates/persons/_show.html.erb +++ b/app/views/admin/communication/blocks/templates/persons/_show.html.erb @@ -18,11 +18,16 @@ else person_link = '#' end + begin + title_with_optional_link = link_to_if block.template.option_link, person_l10n, person_link + rescue + title_with_optional_link = person_l10n + end %> <article class="person" itemscope itemtype="https://schema.org/Person"> <div class="description"> <h<%= heading_level %>> - <%= link_to_if block.template.option_link, person_l10n, person_link %> + <%= title_with_optional_link %> </h<%= heading_level %>> <p itemprop="jobTitle"> <%= element.role %>