fix pagination directive to be relative to current view