diff --git a/middleman-more/lib/middleman-more/core_extensions/default_helpers.rb b/middleman-more/lib/middleman-more/core_extensions/default_helpers.rb index 1b2390f6..c2028407 100644 --- a/middleman-more/lib/middleman-more/core_extensions/default_helpers.rb +++ b/middleman-more/lib/middleman-more/core_extensions/default_helpers.rb @@ -136,8 +136,11 @@ module Middleman # Handle relative urls current_source_dir = Pathname('/' + current_resource.path).dirname - uri = URI(url) - url_path = uri.path + begin + uri = URI(url) + url_path = uri.path + rescue + end if url_path path = Pathname(url_path)