Fix the url creation logic to preserve pagination info when filter present

This should fix the bug reported here:
https://trello.com/c/wRZeeh6o