[#957] Made pagination links carry over filters

Fixes the broken pagination links.