web/data/cubicweb.facets.js
branchstable
changeset 5112 5bf8baecfaf8
parent 3129 fab471bee6c1
child 5658 7b9553a9db65
child 5668 7bd6a8a126b8
--- a/web/data/cubicweb.facets.js	Wed Mar 31 14:27:02 2010 +0200
+++ b/web/data/cubicweb.facets.js	Wed Mar 31 14:28:40 2010 +0200
@@ -47,10 +47,11 @@
 	var rql = result[0];
 	var $bkLink = jQuery('#facetBkLink');
 	if ($bkLink.length) {
-	    var bkUrl = $bkLink.attr('cubicweb:target') + '&path=view?rql=' + rql;
+	    var bkPath = 'view?rql=' + escape(rql);
 	    if (vid) {
-		bkUrl += '&vid=' + vid;
+		bkPath += '&vid=' + escape(vid);
 	    }
+	    var bkUrl = $bkLink.attr('cubicweb:target') + '&path=' + escape(bkPath);
 	    $bkLink.attr('href', bkUrl);
 	}
 	var toupdate = result[1];