Added option to use a named route instead of url_for for the generated pagination links