Skip to content

Commit

Permalink
[TASK] Show parameter for links if url rendering fails
Browse files Browse the repository at this point in the history
This might happen for instance for links to records etc.
  • Loading branch information
davidsteeb authored May 10, 2021
1 parent d04cbc3 commit 0dcd3f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Resources/Private/Partials/Link.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@

<f:if condition="{link}">
<div class="b_link">
<span class="b_label">{f:translate(key: 'LLL:EXT:backendpreviews/Resources/Private/Language/locallang_db.xlf:link.label')}: </span>{linklabel} ({f:uri.typolink(parameter: link)})
<span class="b_label">{f:translate(key: 'LLL:EXT:backendpreviews/Resources/Private/Language/locallang_db.xlf:link.label')}: </span>{linklabel}
({f:if(condition: '{f:uri.typolink(parameter: link)}', then: '{f:uri.typolink(parameter: link)}', else: link)})
<f:if condition="{config}">
[{f:translate(key: 'LLL:EXT:backendpreviews/Resources/Private/Language/locallang_db.xlf:link.config')}: {config}]
</f:if>
Expand Down

0 comments on commit 0dcd3f5

Please sign in to comment.