<%= link_to (current_user ? home_page : root_path), class: "header-brand" do %>
- <%= image_tag(logo_image, class: "header-brand-img", alt:"") %>
+ <% begin %>
+ <%= image_tag(logo_image, class: "header-brand-img", alt:"") %>
+ <% rescue %>
+ <%= t("administrator.site_settings.branding.invalid") %>
+ <% end %>
<% end %>
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 6b01adc4..ee55901d 100755
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -42,6 +42,7 @@ en:
info: Change the branding image that appears in the top left corner
placeholder: Image Url...
title: Branding Image
+ invalid: Invalid URL
cache:
info: Clears the stored provider cache which forces a new request for the updated info
title: Clear Provider Cache