_docker/lib/export/export_html_post_processor.rb
def rewrite_form_target_urls?(drupal_host, html_doc, html_file_name)

    forms_to_modify = html_doc.css("form[action^=\"http://#{drupal_host}\"]")
    forms_to_modify.each do | form |
      home_link_href = locate_index_link_href(html_doc, html_file_name)
      new_action_value = "#{home_link_href}search/"

      @log.info("\tModifying form action '#{form.attributes['action']}' to '#{new_action_value}'")
      form.attributes['action'].value = new_action_value
    end
    forms_to_modify.size > 0

  end
#
# Re-writes the action attribute of any form on the page where the action is pointing to the host from
# which we have exported the HTML content
#
Re-writes the action attribute of any form on the page where the action is pointing to the host from
which we have exported the HTML content
Re - writes the action attribute of any form on the page where the action is pointing to the host from which we have exported the HTML content
def rewrite_form_target_urls?(drupal_host, html_doc, html_file_name)
    forms_to_modify = html_doc.css("form[action^=\"http://#{drupal_host}\"]")
    forms_to_modify.each do | form |
      home_link_href = locate_index_link_href(html_doc, html_file_name)
      new_action_value = "#{home_link_href}search/"
      @log.info("\tModifying form action '#{form.attributes['action']}' to '#{new_action_value}'")
      form.attributes['action'].value = new_action_value
    end
    forms_to_modify.size > 0
  end
def rewrite_form_target_urls? ( drupal_host , html_doc , html_file_name ) forms_to_modify = html_doc . css ( "form[action^=\"http://#{drupal_host}\"]" ) forms_to_modify . each do | form | home_link_href = locate_index_link_href ( html_doc , html_file_name ) new_action_value = "#{home_link_href}search/" @log . info ( "\tModifying form action '#{form.attributes['action']}' to '#{new_action_value}'" ) form . attributes [ 'action' ] . value = new_action_value end forms_to_modify . size > 0 end
Re-writes the action attribute of any form on the page where the action is pointing to the host from
which we have exported the HTML content
Re - writes the action attribute of any form on the page where the action is pointing to the host from which we have exported the HTML content
drupal_host
html_doc
html_file_name