fix adding search and sort options to previous page link, fixes #280