Using wrong URL for pagination links

I've been having issues with pagination links going to my default route, instead of the current one.