Replaced get_domain with get_url

This commit is contained in:
2025-08-13 23:33:49 +02:00
parent a40d48bb03
commit 41cd6b7702
4 changed files with 11 additions and 10 deletions

View File

@@ -30,7 +30,7 @@
$c = $app->getContainer();
$cfg = $c->get("config");
$writer = $c->get("injectableFactory")->create("\Espo\Core\Utils\Config\ConfigWriter");
$new = "{{ domains | get_url(application_id, WEB_PROTOCOL) }}";
$new = "{{ espocrm_url }}";
if ($cfg->get("siteUrl") !== $new) {
$writer->set("siteUrl", $new);
$writer->save();