lib/scrivito/cms_routing.rb in scrivito_sdk-1.1.1 vs lib/scrivito/cms_routing.rb in scrivito_sdk-1.2.0.rc1

- old
+ new

@@ -75,10 +75,10 @@ url end def path_or_url_for_objs(obj, path_or_url, options) permalink = obj.permalink - if permalink && route_defined?(:permalink) + if permalink && route_defined?(:permalink) && permalink.split('/').first != 'scrivito' use_route(:permalink, path_or_url, options.merge(:permalink => permalink)) elsif homepage?(obj) && route_defined?(:homepage) use_route(:homepage, path_or_url, options) elsif obj.binary? binary_obj_url(obj) || LINK_TO_EMPTY_BLOB