lib/scrivito/cms_routing.rb in scrivito_sdk-0.30.0.rc1 vs lib/scrivito/cms_routing.rb in scrivito_sdk-0.30.0

- old
+ new

@@ -44,10 +44,12 @@ if target.first.is_a?(Link) path_or_url_for_links(target.first, path_or_url, options) else return LINK_TO_EMPTY_LINKLIST end + elsif target.is_a?(Binary) + target.url else raise "scrivito_path or scrivito_url was called with an instance of #{target.class}. "+ "It must only be called with an Obj or a Link or a non-empty LinkList." end end @@ -66,10 +68,10 @@ elsif obj.homepage? main_app.public_send("scrivito_root_#{path_or_url}", options) else if obj.binary? && editing_context.display_mode != "editing" if obj.binary_url - self.class.match_protocol(obj.binary_url, request) + obj.binary_url else LINK_TO_EMPTY_BLOB end else main_app.public_send(