From d57afa0256190df4f6d18c64a52f4a88a039d753 Mon Sep 17 00:00:00 2001 From: Nolan Ehrstrom Date: Mon, 29 Dec 2025 08:55:26 -0800 Subject: [PATCH] Fix multitenant file url generation --- ProcessMaker/Multitenancy/SwitchTenant.php | 8 ++++++++ 1 file changed, 8 insertions(+) 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);