Fixed base url to prepend to @@querybuilder_html_results.

Only keep the part before '/portal_factory'.
Previously, portal_factory was kept, which seems unneeded.
In case of folderish collections it would break as the base url had an unexpected slash at the end,
causing a BadRequest because Plone would try to create an item with invalid id @@querybuilder_html_results.
changelog