lib/scrivito/routing_helper.rb in scrivito_sdk-0.65.2 vs lib/scrivito/routing_helper.rb in scrivito_sdk-0.66.0.rc1
- old
+ new
@@ -18,11 +18,11 @@
# @param options [Hash] include url settings such as path parameters or protocol.
#
# @return [String]
#
def scrivito_path(target, options = {})
- CmsRouting.new(request, main_app).path_or_url(target, "path", options)
+ CmsRouting.new(request, main_app, scrivito_engine).path_or_url(target, "path", options)
end
#
# Returns the absolute URL for a cms object.
#
@@ -34,9 +34,9 @@
# @param options [Hash] include url settings such as path parameters or protocol.
#
# @return [String]
#
def scrivito_url(target, options = {})
- CmsRouting.new(request, main_app).path_or_url(target, "url", options)
+ CmsRouting.new(request, main_app, scrivito_engine).path_or_url(target, "url", options)
end
end
end