         other-sort-url (cond
                         inbox?
                         nil
-                        contributor?
+                        contributions?
                         (contributions-url org (:author-uuid params) (if recent-activity-sort? :recently-posted :recent-activity))
                         :else
                         (url collection-type org (if recent-activity-sort? :recently-posted :recent-activity)))

(defn- is-inbox? [collection-type]
  (= collection-type "inbox"))

(defn- is-contributor? [collection-type]
  (= collection-type "contributors"))

(defn- pagination-link
  "Add `next` and/or `prior` links for pagination as needed."

  [params org collection-type activity boards user]
  (let [sort-type (:sort-type params)
        inbox? (is-inbox? collection-type)
        contributions? (is-contributions? collection-type)
        collection-url (cond
                        inbox?
                        (inbox-url collection-type org)
                        contributions?
                        (contributions-url org (:author-uuid params) (:sort-type params))
                        :else
                        (url collection-type org sort-type))
