Skip to content

Commit

Permalink
use getSchemeAndHttpHost for correct baseurl in JSConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
Guite committed Dec 2, 2016
1 parent 050aac7 commit c662205
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public function addJSConfig(FilterResponseEvent $event)

$config = [
'entrypoint' => $this->variableApi->getSystemVar('entrypoint', 'index.php'),
'baseURL' => $event->getRequest()->getBaseUrl() . '/',
'baseURL' => $event->getRequest()->getSchemeAndHttpHost() . '/',
'baseURI' => $event->getRequest()->getBasePath(),
'ajaxtimeout' => (int)$this->variableApi->getSystemVar('ajaxtimeout', 5000),
'lang' => $event->getRequest()->getLocale(),
Expand Down

0 comments on commit c662205

Please sign in to comment.