Skip to content

Commit 0028918

Browse files
authored
Merge pull request #13 from abejenaru/branch-1
Fix for favicon route when app not in web root
2 parents a3e655a + e55878b commit 0028918

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helpers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
function favicon($image)
77
{
88
if (app(FaviconGenerator::class)->shouldGenerateFavicon(app()->environment())) {
9-
return '/'.config('favicon.url_prefix')."/$image";
9+
return rtrim(config('app.url'), '/').'/'.config('favicon.url_prefix')."/$image";
1010
}
1111

1212
return $image;

0 commit comments

Comments
 (0)