sitepress-core/lib/sitepress/resource.rb
# Deals with situations, particularly in the root node and other "index" nodes, for the `request_path`
Deals with situations, particularly in the root node and other "index" nodes, for the `request_path`
Deals with situations particularly in the root node and other " index " nodes for the ` request_path `
def request_filename
      if node.root? and node.default_format == format
        ""
      elsif node.root? and format
        "#{node.default_name}.#{format}"
      elsif node.root?
        node.default_name
      elsif format.nil? or node.default_format == format
        node.name
      else
        "#{node.name}.#{format}"
      end
    end
def request_filename if node . root? and node . default_format == format "" elsif node . root? and format "#{node.default_name}.#{format}" elsif node . root? node . default_name elsif format . nil? or node . default_format == format node . name else "#{node.name}.#{format}" end end
Deals with situations, particularly in the root node and other "index" nodes, for the `request_path`
Deals with situations particularly in the root node and other " index " nodes for the ` request_path `