diff --git a/sites/all/modules/contrib/colorbox_node/colorbox_node.js b/sites/all/modules/contrib/colorbox_node/colorbox_node.js
index 3f7e4d9..694cc94 100644
--- a/sites/all/modules/contrib/colorbox_node/colorbox_node.js
+++ b/sites/all/modules/contrib/colorbox_node/colorbox_node.js
@@ -11,6 +11,7 @@
 				parse.href = href;
 				// Lets add our colorbox link after the base path if necessary.
 				var base_path = Drupal.settings.basePath;
+        var path_prefix = Drupal.settings.pathPrefix;
 				var pathname = parse.pathname;
 
 				// Lets check to see if the pathname has a forward slash.
@@ -20,9 +21,9 @@
 				}
 				
 				if(base_path != '/') {
-					var link = pathname.replace(base_path, base_path + 'colorbox/');
+					var link = pathname.replace(base_path, base_path + path_prefix + 'colorbox/');
 				} else {
-					var link = base_path + 'colorbox' + pathname;
+					var link = base_path + path_prefix + 'colorbox' + pathname;
 				}
 				// Update our href to the link containing colorbox.
 				$this.attr('href', link + parse.search);
