1
0
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:
Awilum
2022-06-17 11:53:17 +03:00
parent 1fd6a55c97
commit dfa008ad75
2 changed files with 3 additions and 3 deletions

View File

@@ -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()));

View File

@@ -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 . '/';
}
}