   firstLink = prevLink = nextLink = lastLink = ""
 
   if currentPage > 1
-    firstLink = getSinglePageLink 1, contentType, "First"
-    prevLink  = getSinglePageLink (currentPage - 1), contentType, "Prev"
+    firstLink = getSinglePageLink 1, "First", route
+    prevLink  = getSinglePageLink (currentPage - 1), "Prev", route
 
   if currentPage < numberOfPages
-    lastLink  = getSinglePageLink numberOfPages, contentType, "Last"
-    nextLink  = getSinglePageLink (currentPage + 1), contentType, "Next"
+    lastLink  = getSinglePageLink numberOfPages, "Last", route
+    nextLink  = getSinglePageLink (currentPage + 1), "Next", route
 
   pagination = firstLink + prevLink
 

        return callback null, fullPage
      daisy queue

getPagination = (currentPage, numberOfItems, contentType)->
  # 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

    pagination += getNoHrefLink " ... "

  [start..end].map (pageNumber)=>
    pagination += getSinglePageLink pageNumber, null, route

  if end < numberOfPages
    pagination += getNoHrefLink " ... "
