Revert "XWIKI-10015: do not use $request.qs as queryString parameter to $doc.getURL"

This reverts commit 057a63f68e678b7d755d5bc29a286f31dc564c74.
actually the "fix" is wrong, sorry, revering