Skip to content

Commit

Permalink
Fix for running in CodeSpaces
Browse files Browse the repository at this point in the history
  • Loading branch information
onigoetz authored May 19, 2022
1 parent 25309fd commit 5a3773d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libs/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ public function getBaseUrl()
public function getBasePage()
{
if ($this->isLive()) {
$value = '//' . $this->getBaseUrl();
$value = $this->getBaseUrl();
if (!$this['live']['clean_urls']) {
$value .= 'index.php/';
}
Expand Down
4 changes: 2 additions & 2 deletions libs/Server/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function __construct(Daux $daux)
$this->daux = $daux;

$this->request = Request::createFromGlobals();
$this->base_url = $this->request->getHttpHost() . $this->request->getBaseUrl() . '/';
$this->base_url = str_replace('//', '/', '/' . $this->request->getBaseUrl() . '/');
}

/**
Expand Down Expand Up @@ -125,7 +125,7 @@ public function getConfig()
{
$config = $this->daux->getConfig();

DauxHelper::rebaseConfiguration($config, '//' . $this->base_url);
DauxHelper::rebaseConfiguration($config, $this->base_url);

return $config;
}
Expand Down

0 comments on commit 5a3773d

Please sign in to comment.