fix url parsing.
This commit is contained in:
parent
a85945561c
commit
ffb4034631
|
@ -54,7 +54,7 @@
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'profiler' => true,
|
'profiler' => false,
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
@ -61,7 +61,7 @@ public static function base()
|
||||||
|
|
||||||
$base = 'http://localhost';
|
$base = 'http://localhost';
|
||||||
|
|
||||||
// If the application URL configuration is set, we will just use that
|
// If the application's URL configuration is set, we will just use that
|
||||||
// instead of trying to guess the URL from the $_SERVER array's host
|
// instead of trying to guess the URL from the $_SERVER array's host
|
||||||
// and script variables as this is more reliable.
|
// and script variables as this is more reliable.
|
||||||
if (($url = Config::get('application.url')) !== '')
|
if (($url = Config::get('application.url')) !== '')
|
||||||
|
@ -72,7 +72,7 @@ public static function base()
|
||||||
{
|
{
|
||||||
$f = Request::foundation();
|
$f = Request::foundation();
|
||||||
|
|
||||||
$base = $f->getScheme().'://'.$f->getHttpHost().$f->getBaseUrl();
|
$base = $f->getScheme().'://'.$f->getHttpHost().$f->getBasePath();
|
||||||
}
|
}
|
||||||
|
|
||||||
return static::$base = $base;
|
return static::$base = $base;
|
||||||
|
|
Loading…
Reference in New Issue