Skip to content

Commit 48cc4e8

Browse files
committed
Translate the #anchor after we have the link, don't put the translated one in the link
A workaround efabrica-team/phpstan-latte#398 but I have to say I like this better.
1 parent 165cfc2 commit 48cc4e8

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

site/app/Www/Presenters/templates/Trainings/reviews.latte

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
<p>
99
{$description}
1010
{if !isset($discontinued)}
11-
{capture $link}Trainings:training#{_html.id.application}{/capture}
12-
<small>(<a n:href="$link $name">{_messages.label.lowercaseapplication}</a>, <a n:href="CompanyTrainings:training $name">{_messages.label.lowercasecompanytraining}</a>)</small>
11+
<small>(<a href="{link Trainings:training $name}#{_html.id.application}">{_messages.label.lowercaseapplication}</a>, <a n:href="CompanyTrainings:training $name">{_messages.label.lowercasecompanytraining}</a>)</small>
1312
{/if}
1413
</p>
1514
<div n:ifset="$discontinued" class="flash notice">{include "common/discontinued.latte"}</div>

site/app/Www/Presenters/templates/Trainings/success.latte

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@
5050
{/form application}
5151
<hr>
5252
<p class="separated">
53-
{capture $link}Trainings:application#{_html.id.application}{/capture}
54-
<a n:href="$link $name">{_messages.trainings.addanother}</a>
53+
<a href="{link Trainings:application $name}#{_html.id.application}">{_messages.trainings.addanother}</a>
5554
</p>
5655

5756
<h2>{_messages.label.othertrainings}</h2>

0 commit comments

Comments
 (0)