Skip to content

Commit

Permalink
Fix for trailing / in routes
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Miller <[email protected]>
  • Loading branch information
rhukster committed Jun 8, 2020
1 parent 4be7917 commit 419ebea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/src/Grav/Framework/Route/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ public function toString(bool $includeRoot = false)
$url .= '?' . $this->getUriQuery();
}

return $url;
return rtrim($url,'/');
}

/**
Expand Down

0 comments on commit 419ebea

Please sign in to comment.