We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a32d20 commit e291d12Copy full SHA for e291d12
Strategy/AdminStrategy.php
@@ -386,7 +386,11 @@ public function getAssetBaseUrl()
386
387
public function getBaseUrl()
388
{
389
- return str_replace('/index.php', '', $this->container->get('request_stack')->getCurrentRequest()->getBaseUrl());
+ if($this->has('request_stack') && !empty($this->get('request_stack')->getCurrentRequest())){
390
+ return str_replace('/index.php', '', $this->get('request_stack')->getCurrentRequest()->getBaseUrl());
391
+ }
392
+
393
+ return '';
394
}
395
396
/**
0 commit comments