Skip to content

Commit

Permalink
#345 - Always use setUrl() to support a regex containing a query
Browse files Browse the repository at this point in the history
  • Loading branch information
johanjanssens committed May 16, 2020
1 parent 2aecc32 commit 690e7e3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -373,10 +373,10 @@ protected function _buildRoute($regex, ComPagesDispatcherRouterRouteInterface $r
}

if(strpos($regex, '://') === false) {
$route->setPath('/'.ltrim($regex, '/'));
} else {
$route->setUrl($regex);
$regex = '/' . ltrim($regex, '/');
}

$route->setUrl($regex);
}

return $result;
Expand Down

0 comments on commit 690e7e3

Please sign in to comment.