Fix for the pagination
Allows hashes to work for the permalink.