$query =
$parts['query'
] ?? '';
$fragment =
$parts['fragment'
] ?? '';
return [$routePath,
$query,
$fragment];
} private function determineBaseURL( App
$configApp,
?string
$host,
?string
$scheme ): URI
{ $baseURL =
$this->
normalizeBaseURL($configApp);
$uri =
new URI($baseURL);
// Update scheme
if ($scheme !== null &&
$scheme !== ''
) { $uri->
setScheme($scheme);
} elseif ($configApp->forceGlobalSecureRequests
) { $uri->
setScheme('https'
);
} // Update host