Can we switch the links that are inserted in the page to be protocol-less? This would allow SSL based sites to work better without any warnings that insecure content is loaded.

So for example, instead of:

drupal_add_js('http://search.usa.gov/javascripts/jquery/jquery.autocomplete.min.js', array('type' => 'external', 'defer' => TRUE));

Use this:

drupal_add_js('//search.usa.gov/javascripts/jquery/jquery.autocomplete.min.js', array('type' => 'external', 'defer' => TRUE));

I can submit a patch if the community thinks this is a good idea.

Comments

timwood’s picture

Assigned: Unassigned » timwood
Status: Active » Fixed

Great idea Mr. Bornholtz! I've implemented this in 6.x and 7.x branches and I'm creating the first "stable" release for 7.x and updated release for 6.x!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit 68d150d on 7.x-2.x, 7.x-3.x, 7.x-4.x by timwood:
    Issue #1683862 by timwood: Changed externally referenced JS/CSS and the...