Skip to content

Commit da4c8f7

Browse files
authored
Merge pull request #8729 from ProcessMaker/bugfix/FOUR-29220
Fix global URL helper
2 parents 2d97cc8 + 8f0a9a8 commit da4c8f7

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

ProcessMaker/Multitenancy/SwitchTenant.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace ProcessMaker\Multitenancy;
44

55
use Illuminate\Broadcasting\BroadcastManager;
6+
use Illuminate\Contracts\Routing\UrlGenerator;
67
use Illuminate\Support\Arr;
78
use Illuminate\Support\Env;
89
use Monolog\Handler\RotatingFileHandler;
@@ -136,6 +137,9 @@ private function overrideConfigs(Application $app, IsTenant $tenant)
136137
$app->make('log')->reset();
137138
$app->forgetInstance('log');
138139

140+
// url() helper
141+
app(UrlGenerator::class)->useOrigin($tenant->config['app.url']);
142+
139143
// NOTE: Cache prefix and cache settings prefix are handled in PrefixCacheTask
140144

141145
if (!isset($tenant->config['app.docker_host_url'])) {

0 commit comments

Comments
 (0)