Skip to content

Commit

Permalink
also prepend full path for empty route path
Browse files Browse the repository at this point in the history
  • Loading branch information
TomK committed Dec 14, 2018
1 parent cfb5176 commit a91434d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Routing/Constraint.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ final public function add($on, $with, $type = self::TYPE_MATCH)

protected function _convertPathToRegex($path, $type)
{
if($path[0] !== '/')
if(empty($path) || $path[0] !== '/')
{
$path = Path::url($this->_routedPath, $path);
}
Expand Down

0 comments on commit a91434d

Please sign in to comment.