Skip to content

Commit f638260

Browse files
authored
Merge pull request #8665 from ProcessMaker/bugfix/mt-urls
Fix multitenant file url generation
2 parents 01ad702 + d57afa0 commit f638260

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ProcessMaker/Multitenancy/SwitchTenant.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,14 @@ private function overrideConfigs(Application $app, IsTenant $tenant)
111111
$config['root']
112112
));
113113
}
114+
// URLs
115+
if (isset($config['url'])) {
116+
$this->setConfig('filesystems.disks.' . $disk . '.url', str_replace(
117+
$this->landlordConfig('app.url'),
118+
$tenant->config['app.url'],
119+
$config['url']
120+
));
121+
}
114122
}
115123
$app->useStoragePath($newStoragePath);
116124

0 commit comments

Comments
 (0)