Skip to content

Commit

Permalink
Merge pull request #22 from 8fold/working
Browse files Browse the repository at this point in the history
FB adds a query string to the end or URLs
  • Loading branch information
joshbruce authored Oct 31, 2021
2 parents c207a6b + 8b7db13 commit 0953f1d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ public function isMissingRequiredValues(): bool
if (! array_key_exists($key, $this->serverGlobals)) {
return true;
}

if ($key === 'REQUEST_URI') {
$uri = $this->serverGlobals['REQUEST_URI'];
$parts = explode('?', $uri);
$this->serverGlobals['REQUEST_URI'] = array_shift($parts);
}
}

if ($this->serverGlobals['APP_ENV'] !== 'production') {
Expand Down
1 change: 1 addition & 0 deletions tests/test-content/assets/js/javascript.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
function something() {}
Empty file.

0 comments on commit 0953f1d

Please sign in to comment.