def url_for(options = nil, engine_name = current_engine_name)
      options ||= {}
      return super(options) unless options.is_a?(Hash) || options.is_a?(ActionController::Parameters)

      url = EnginePathBuilder.handle(
        engine_name: engine_name, parameters: options, default_url_options: default_url_options
      )
      url ||= main_app.root_path default_url_options.merge(options) if options[:action] == 'home'
      url || super(HashUtils.slice!(options, *options.keys))
    end
def url_for(options = nil, engine_name = current_engine_name)
      options ||= {}
      return super(options) unless options.is_a?(Hash) || options.is_a?(ActionController::Parameters)

      url = EnginePathBuilder.handle(
        engine_name: engine_name, parameters: options, default_url_options: default_url_options
      )
      url ||= main_app.root_path default_url_options.merge(options) if options[:action] == 'home'
      url || super(HashUtils.slice!(options, *options.keys))
    end
Override `actionview/lib/action_view/routing_url_for.rb#url_for` too handle URL for wallaby engine
 @param options [String, Hash]
 @param engine_name [String, nil]
 @return [String] URL string