Skip to content
Snippets Groups Projects

Issue#3513990: Fix Route not found exception.

1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -112,7 +112,7 @@ final class LibreTranslator extends AutoNodeTranslateProviderPluginBase implemen
]);
}
catch (\Exception $e) {
$link = Url::fromRoute('auto_node_translate.config_form', [], ['absolute' => TRUE])->toString();
$link = Url::fromRoute('auto_node_translate.settings', [], ['absolute' => TRUE])->toString();
$this->messenger->addError($this->t('LibreTranslate translator error @error .Try another Api in <a href="@link">@link</a>', [
'@link' => $link,
'@error' => $e->getMessage(),
@@ -129,7 +129,7 @@ final class LibreTranslator extends AutoNodeTranslateProviderPluginBase implemen
}
}
else {
$link = Url::fromRoute('auto_node_translate.config_form', [], ['absolute' => TRUE])->toString();
$link = Url::fromRoute('auto_node_translate.settings', [], ['absolute' => TRUE])->toString();
$placeholders = [
'@link' => $link,
'@from' => $from,
Loading