#177906 by douggreen: JavaScript cookie detection should use path=/ to avoid broken situations when run at a 'subdirectory'

6.x
Gábor Hojtsy 2007-09-25 14:55:36 +00:00
parent 6143f13c41
commit 216322ac98
1 changed files with 1 additions and 1 deletions

View File

@ -339,7 +339,7 @@ if (Drupal.jsEnabled) {
// Global Killswitch on the <html> element
document.documentElement.className = 'js';
// 'js enabled' cookie
document.cookie = 'has_js=1';
document.cookie = 'has_js=1; path=/';
// Attach all behaviors.
$(document).ready(Drupal.attachBehaviors);
}