app/controllers/concerns/enjoy/nav_menu.rb in enjoy_cms-0.3.4 vs app/controllers/concerns/enjoy/nav_menu.rb in enjoy_cms-0.3.5
- old
+ new
@@ -54,17 +54,17 @@
def nav_get_url(item)
_connectable = item.connectable
if _connectable and _connectable.enabled
begin
_routes_namespace = _connectable.respond_to?(:routes_namespace) ? _connectable.routes_namespace : :main_app
- send(_routes_namespace.to_sym).url_for(_connectable)
+ send(_routes_namespace.to_sym).url_for([_connectable, {only_path: true}])
rescue Exception => exception
Rails.logger.error exception.message
Rails.logger.error exception.backtrace.join("\n")
puts exception.message
puts exception.backtrace.join("\n")
capture_exception(exception) if respond_to?(:capture_exception)
-
+
item.redirect.blank? ? item.fullpath : item.redirect
end
else
item.redirect.blank? ? item.fullpath : item.redirect
end