Revert "Fixed incorrect routing if url path looks like a domain name [#2184]"

Previous change broke running Grav under Load Balancer with custom_base_url
set. Also, it's not a good idea to add 3rd party domain into host value,
which could be accidently reused some time in the future.

This (not counting CHANGELOG) reverts commit 0af33850a6.
This commit is contained in:
Vilius Šumskas 2024-04-24 22:09:24 +03:00
parent ee8d783d05
commit 27dff6fcc7

View File

@ -205,8 +205,8 @@ class Uri
// set active language
$uri = $language->setActiveFromUri($uri);
// split the URL and params (and make sure that the path isn't seen as domain)
$bits = parse_url('http://domain.com' . $uri);
// split the URL and params
$bits = parse_url($uri);
//process fragment
if (isset($bits['fragment'])) {