lib/wcc/contentful/model/menu_button.rb in wcc-contentful-app-1.4.0.rc2 vs lib/wcc/contentful/model/menu_button.rb in wcc-contentful-app-1.4.0.rc3

- old
+ new

@@ -14,9 +14,11 @@ # Example usage: `<%= link_to button.title, button.href %>` def href return external_link if external_link url = (link&.try(:slug) || link&.try(:url)) + return if url.blank? && fragment.blank? + url = URI(url || '') url = rewrite_to_locale(url, sys.locale) if default_locale && sys.locale != default_locale url.fragment = fragment if fragment.present?