Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
We ran into issues on our site concerning the redirect on test pages. Since the control script is added via drupal_add_js() it's placed AFTER the other javascript files, which was causing issues as the redirect was executed after our analytics scipts tracked that page.
I patched just this issue and am using drupal_set_html_head to include it on the page.
Comment | File | Size | Author |
---|---|---|---|
order_of_scripts.patch | 2.19 KB | devkinetic |
Comments
Comment #1
aufumy CreditAttribution: aufumy commentedworks for me.
Comment #2
jay_N CreditAttribution: jay_N commentedI would recommend this patch to be included in a new release, too.
Comment #3
Webster619 CreditAttribution: Webster619 commentedAny update on this being added to a stable release?
Comment #4
devkinetic CreditAttribution: devkinetic commentedI can confirm that this still works and has caused no issues since implimentation.
Comment #5
Schoonzie CreditAttribution: Schoonzie commentedGWO is no longer around. Closing old issues.