     pagination += getNoHrefLink " ... "
 
   [start..end].map (pageNumber)=>
-    pagination += getSinglePageLink pageNumber, contentType
+    pagination += getSinglePageLink pageNumber, null, route
 
   if end < numberOfPages
     pagination += getNoHrefLink " ... "

  firstLink = prevLink = nextLink = lastLink = ""

  if currentPage > 1
    firstLink = getSinglePageLink 1, contentType, "First"
    prevLink  = getSinglePageLink (currentPage - 1), contentType, "Prev"

  if currentPage < numberOfPages
    lastLink  = getSinglePageLink numberOfPages, contentType, "Last"
    nextLink  = getSinglePageLink (currentPage + 1), contentType, "Next"

  pagination = firstLink + prevLink


        return callback null, fullPage
      daisy queue

getPagination = (currentPage, numberOfItems, route="")->
  # This is the number of adjacent link around current page.
  # E.g. let current page be 9, then pagination will look like this:
  # First Prev ... 4 5 6 7 8 9 10 11 12 13 14 ... Next Last
