QueryString is now appended to page links

I need  append to page links the query string (&category_id=2 for example).
This code allows do it
The docblock formatting is wrong.

* Ensure the short description ends in a full stop, and is followed by a blank line of comment
* Ensure that all scalar type hints are lowercase
* Please put two spaces after `int`.