Issue #1596400 by michielnugter: Fixed Paging links incorrect when the original url contains a query string.