cubicweb #2758130 make sure ajax_replace_url() sets "pageid" in generated URL only once [validation pending]

ajax_replace_url() generates a JS snippet that can be used to replace an HTML DOM with dynamically-fetched data (using CubicWeb's loadxhtml() JS function).

For some features of CubicWeb to work properly, it adds the pageid parameter to the loadxhtml() call.

However, if **extraparams already containes pageid, loadxhtml will generate a URL with the pageid parameter set twice, which — in later AJAX requests — will trick CubicWeb into thinking that pageid is a list containing two strings.

Pruning pageid from **extraparams should solve this.

prioritynormal
typebug
done in3.15.10
load left0.000
closed by#d4d9f33fd01b [web/request] Prune extraneous 'pageid' from generated ajax URL parameters (closes #2758130)
patch[web/request] Prune extraneous 'pageid' from generated ajax URL parameters [applied]