Fix hits pagination links

I think these have been broken since we upgraded to Rails 4.x and the way that
these routes were implemented was no longer supported.

This way is less code, less metaprogramming and easier to follow.