--- a/colorbox_node/colorbox_node.js 2012-05-30 10:43:08.000000000 +0200 +++ b/colorbox_node/colorbox_node.js 2012-05-30 10:42:40.000000000 +0200 @@ -17,11 +17,10 @@ if(pathname.charAt(0) != '/') { pathname = '/' + parse.pathname; } - if(base_path != '/') { - var link = pathname.replace(base_path, base_path + 'colorbox/'); + var link = pathname.replace(base_path, base_path + Drupal.settings.pathPrefix + 'colorbox/'); } else { - var link = base_path + 'colorbox' + pathname; + var link = base_path + Drupal.settings.pathPrefix + 'colorbox' + pathname; } // Update our href to the link containing colorbox. $(this).attr('href', link + parse.search);