|
@@ -21,8 +21,10 @@ class URL {
|
|
|
|
|
|
$base = Config::get('application.url').'/'.Config::get('application.index');
|
|
|
|
|
|
+
|
|
|
$base = ($asset) ? str_replace('/'.Config::get('application.index'), '', $base) : $base;
|
|
|
|
|
|
+
|
|
|
$base = ($https and strpos($base, 'http://') === 0) ? 'https://'.substr($base, 7) : $base;
|
|
|
|
|
|
return $base.'/'.ltrim($url, '/');
|