Skip to content

Commit

Permalink
Merge pull request #15 from lloricode/bugfix/trim
Browse files Browse the repository at this point in the history
Fix trim
  • Loading branch information
dsbilling authored Dec 16, 2024
2 parents 757c292 + 0ddcce0 commit afb5b4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
function favicon($image)
{
if (app(FaviconGenerator::class)->shouldGenerateFavicon(app()->environment())) {
return rtrim(config('app.url'), '/').'/'.config('favicon.url_prefix')."/$image";
return rtrim(config('app.url'), '/').'/'.config('favicon.url_prefix').'/'.trim($image, '/');
}

return $image;
Expand Down

0 comments on commit afb5b4d

Please sign in to comment.