Skip to content

Commit

Permalink
Made link text translatable
Browse files Browse the repository at this point in the history
  • Loading branch information
rimi-itk committed Sep 29, 2023
1 parent 8979118 commit a0904ab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public function previewRender(Request $request, WebformInterface $webform, strin
public function message(Request $request): Response {
$content[] = '<h1>' . $request->get('message') . '</h1>';
if ($referer = $request->headers->get('referer')) {
$content[] = sprintf('<a href="%s">Go back</a>', $referer);
$content[] = $this->t('<a href=":url">Back to preview</a>', [':url' => $referer]);
}

return new Response(implode(PHP_EOL, $content));
Expand Down

0 comments on commit a0904ab

Please sign in to comment.