diff --git a/framework/core/src/Foundation/Application.php b/framework/core/src/Foundation/Application.php index 9c411c750..dc68ce9cf 100644 --- a/framework/core/src/Foundation/Application.php +++ b/framework/core/src/Foundation/Application.php @@ -164,7 +164,7 @@ class Application extends Container implements ApplicationContract public function url($path = null) { $config = $this->isInstalled() ? $this->make('flarum.config') : []; - $url = array_get($config, 'url', $_SERVER['REQUEST_URI']); + $url = array_get($config, 'url', array_get($_SERVER, 'REQUEST_URI')); if (is_array($url)) { if (isset($url[$path])) {