dns-prefetch on multi language site - only shows on one, incorrectly

by LoDef   Last Updated April 20, 2018 10:07 AM

During an automated search for broken links on our sites I found this faulty line in the <head> section in ONE of our sites (out of 8 TLDs running on the same Drupal installation):

<link rel="dns-prefetch" href="//languages" />

The only traces of dns-prefetch I can find in the code is in the Advanced CSS/JS Aggregation module, which also has some admin settings regarding this:

screenshot from AdvAgg dns-prefetch settings
I tried checking Preconnect (recommended), but that just generated a new faulty line:

<link rel="preconnect" href="//languages" />

Interestingly, when I open the languages table in MySQL, the only language that has a value (a 43 character hash/salt string) in the javascript column is the same that shows the faulty dns-prefetch value. Coincidence?

The goal is of course to get dns-prefetch to work, and to do so on all sites. I'm a bit clueless on where to start though. Is languages an array or object that doesn't get printed properly somehow?

SETUP: Drupal 7.58 / PHP 5.4.16 / 5.5.56-MariaDB / Apache/2.4.6 (Red Hat Enterprise Linux) / Advanced CSS/JS Aggregation (AdvAgg) 7.x-2.33

(we're planing to upgrade to PHP 7, just not there yet... :-)

Related Questions

Keep node/user tabs in one language

Updated May 16, 2016 08:03 AM

How do I include a custom module translation?

Updated June 28, 2016 08:03 AM

Adding an existing node as a translation

Updated August 09, 2016 08:03 AM

Drupal 8: make Taxonomy terms translatable

Updated August 16, 2016 08:04 AM