diff -r 5bca35901e9b -r 0d9c8f5eb285 web/request.py --- 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; }' % (