mirror of
https://github.com/flextype/flextype.git
synced 2025-08-06 13:16:45 +02:00
feat(core): upd basepath
This commit is contained in:
@@ -171,7 +171,7 @@ if (filesystem()->file($preflightFlextypePath . '/' . $cacheID . '.php')->exists
|
||||
registry()->set('flextype', $flextypeData);
|
||||
|
||||
// Set Flextype Aplication base path
|
||||
setBasePath(registry()->get('flextype.settings.base_path'));
|
||||
setBasePath('/' . registry()->get('flextype.settings.base_path'));
|
||||
|
||||
// Add Routing Middleware
|
||||
app()->add(new RoutingMiddleware(app()->getRouteResolver(), app()->getRouteCollector()->getRouteParser()));
|
||||
|
@@ -165,9 +165,9 @@ if (! function_exists('getBaseUrl')) {
|
||||
|
||||
if ($url) {
|
||||
if ($isHttps) {
|
||||
$url = 'https://' . $url;
|
||||
$url = 'https://' . $url . '/';
|
||||
} else {
|
||||
$url = 'http://' . $url;
|
||||
$url = 'http://' . $url . '/';
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user