diff -upr back_from_comment.js back_from_comment.js.new
--- back_from_comment.js	2010-07-13 14:42:38.000000000 +0200
+++ back_from_comment.js.new	2010-07-13 14:39:10.000000000 +0200
@@ -17,7 +17,7 @@ function insert_node_destination(link){
   }
   attr+=attr.indexOf('?')==-1?'?':'&';
   url=location.pathname.substring(1);
-  jQuery(link).attr('href',attr+'destination='+url+anchor);
+  jQuery(link).attr('href',attr+'destination='+module_InsertNode_this_url+anchor);
 }
 jQuery(document).ready(function() {
   jQuery("a[href*='comment/reply'],a[href*='comment/edit'],a[href*='comment/delete']").click(function(){insert_node_destination(this);});
diff -upr InsertNode.module InsertNode.module.new
--- InsertNode.module	2010-07-13 14:42:45.000000000 +0200
+++ InsertNode.module.new	2010-07-13 14:40:42.000000000 +0200
@@ -42,6 +42,8 @@ function InsertNode_init() {
   if (function_exists('jquery_plugin_add')) {
     jquery_plugin_add('cookie');
   }
+
+  drupal_add_js("var module_InsertNode_this_url = '".htmlentities(check_plain($_GET['q']),ENT_QUOTES)."';", 'inline');
   drupal_add_js(drupal_get_path('module', 'InsertNode') . '/back_from_comment.js');
 }
 
