diff --git a/ProcessMaker/Multitenancy/SwitchTenant.php b/ProcessMaker/Multitenancy/SwitchTenant.php index d6ea262135..08781ec372 100644 --- a/ProcessMaker/Multitenancy/SwitchTenant.php +++ b/ProcessMaker/Multitenancy/SwitchTenant.php @@ -111,6 +111,14 @@ private function overrideConfigs(Application $app, IsTenant $tenant) $config['root'] )); } + // URLs + if (isset($config['url'])) { + $this->setConfig('filesystems.disks.' . $disk . '.url', str_replace( + $this->landlordConfig('app.url'), + $tenant->config['app.url'], + $config['url'] + )); + } } $app->useStoragePath($newStoragePath);