From d8fdd1b4082446cc110b312c817cfd1a16f090a5 Mon Sep 17 00:00:00 2001 From: Jethro Nederhof Date: Wed, 28 Jul 2021 14:55:34 +1000 Subject: [PATCH] Fix branding logo URL path The current method adds an additional slash to the URL which results in the logo request producing a 404 error on for Storage drivers like S3 and GCS that don't automatically collapse additional forward slashes into single slashes. E.g. with the current code my logo URL renders like `https://storage.googleapis.com/mybucketname/public//setting-logo-Al0aKMhmYz.svg` (note the double slash after "public") when instead it should render like `https://storage.googleapis.com/mybucketname/public/setting-logo-Al0aKMhmYz.svg` For a local driver this should work fine since webservers handle the additional slashes case, but for key-based storage this 404s. Thanks for your work on Snipe-It, seems like a good system so far! --- resources/views/layouts/default.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/layouts/default.blade.php b/resources/views/layouts/default.blade.php index 0ac2479f99..9141172108 100644 --- a/resources/views/layouts/default.blade.php +++ b/resources/views/layouts/default.blade.php @@ -108,14 +108,14 @@ @if ($snipeSettings->brand == '3') @elseif ($snipeSettings->brand == '2')