Skip to content

Commit

Permalink
Fix bug when routing urls containing query params
Browse files Browse the repository at this point in the history
  • Loading branch information
nekudo committed Feb 2, 2020
1 parent ad530ee commit 5487e98
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Blog.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ public function __invoke(): void
protected function route(): array
{
$requestUri = $_SERVER['REQUEST_URI'] ?? '';
$requestUri = parse_url($requestUri, PHP_URL_PATH);
$page = null;
foreach ($this->pageConfigs as $pageId => $pageConfig) {
$pattern = $pageConfig['parse_pattern'];
Expand Down

0 comments on commit 5487e98

Please sign in to comment.