[reledit] do NOT peruse the likely ?vid=edition part
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Fri, 24 Jul 2009 15:30:14 +0200
changeset 2490 b0771c03f531
parent 2488 cd007fc4f2ea
child 2491 95eada71bb23
[reledit] do NOT peruse the likely ?vid=edition part
web/data/cubicweb.edition.js
--- a/web/data/cubicweb.edition.js	Fri Jul 24 15:28:03 2009 +0200
+++ b/web/data/cubicweb.edition.js	Fri Jul 24 15:30:14 2009 +0200
@@ -477,7 +477,7 @@
     d.addCallback(function (result, req) {
         handleFormValidationResponse(divid+'-form', noop, noop, result);
 	if (reload) {
-	    document.location.href = result[1];
+	    document.location.href = result[1].split('?')[0];
 	} else {
 	    var fieldview = getNode('value-' + divid);
 	    // XXX using innerHTML is very fragile and won't work if