Update Paginator.php

function to add anchor to links in the pagination