diff --git a/colorbox_node.module b/colorbox_node.module
index d2091ae..d0c4949 100644
--- a/colorbox_node.module
+++ b/colorbox_node.module
@@ -203,6 +203,15 @@ function colorbox_node_webform_js_submit($form, &$form_state) {
       $markup = check_markup($node->webform['confirmation'], $node->webform['confirmation_format'], '', TRUE) . $javascript;
     }
     else {
+      $path = $form_state['redirect'][0];
+      $options = $form_state['redirect'][1];
+      
+      drupal_alter('drupal_goto', $path, $options);
+    
+      // The 'Location' HTTP header must be absolute.
+      $options['absolute'] = TRUE;
+    
+      $url = url($path, $options);
       // We are doing a redirect so we need to close the colorbox
       // and then force a window.location on the passed in URL.
       $markup = '
@@ -210,7 +219,7 @@ function colorbox_node_webform_js_submit($form, &$form_state) {
         (function ($) {
           $(document).ready(function() {
             $.fn.colorbox.close();
-            window.location = "'. drupal_lookup_path('alias', $node->webform['redirect_url']) .'";
+            window.location = "'. $url .'";
           });
         })(jQuery);
       </script>';
