Skip to content

Commit

Permalink
Revert "Fixed incorrect routing if url path looks like a domain name [#…
Browse files Browse the repository at this point in the history
…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 0af3385.
  • Loading branch information
ViliusS committed Apr 24, 2024
1 parent ee8d783 commit 27dff6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system/src/Grav/Common/Uri.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,8 @@ public function init()
// 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'])) {
Expand Down

0 comments on commit 27dff6f

Please sign in to comment.