web/request.py
changeset 8732 0d9c8f5eb285
parent 8696 0bb18407c053
parent 8730 d4d9f33fd01b
child 8752 e19f4bba89cd
child 8869 a46197b1696f
--- a/web/request.py	Tue Mar 19 10:08:20 2013 +0100
+++ b/web/request.py	Tue Mar 19 12:25:18 2013 +0100
@@ -704,7 +704,10 @@
         # after having url unescaping the content. This may make appear some
         # quote or other special characters that will break the js expression.
         extraparams.setdefault('fname', 'view')
-        url = self.build_url('json', **extraparams)
+        # remove pageid from the generated URL as it's forced as a parameter
+        # to the loadxhtml call below.
+        extraparams.pop('pageid', None)
+        url = self.build_url('ajax', **extraparams)
         cbname = build_cb_uid(url[:50])
         # think to propagate pageid. XXX see https://www.cubicweb.org/ticket/1753121
         jscode = u'function %s() { $("#%s").%s; }' % (