Skip to content

Commit

Permalink
Merge pull request #11 from passioneight/url-utility-fix
Browse files Browse the repository at this point in the history
fix: ensureTrailingSlash removes leading slash
  • Loading branch information
passioneight authored Apr 21, 2022
2 parents d4aad4d + fbd4206 commit 0d91c65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Service/Utility/UrlUtility.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class UrlUtility
*/
public static function ensureTrailingSlash(string $url)
{
$url = self::removeLeadingSlash($url);
$url = self::removeTrailingSlash($url);
return $url . Php::URL_DELIMITER;
}

Expand Down

0 comments on commit 0d91c65

Please sign in to comment.