      {:id (:subject/id subject)
       :type :subject
       :links
-      {:up {:href ""}
+      {:up {:href "/"}
        :self {:href (str "/subjects/" id)}}})
     (ring-resp/not-found
-     {:links {:up {:href ""}}
+     {:links {:up {:href "/"}}
       :error "Subject not found."})))
 
 (defn retract-subject [conn id]
   (if (api/retract-subject conn id)
     (ring-resp/response
       {:links
-       {:up {:href ""}}})
-    (ring-resp/not-found
-     {:links {:up {:href ""}}
+       {:up {:href "/"}}})
+    (ring-resp/not-found
+     {:links {:up {:href "/"}}
       :error "Subject not found."})))
 
 ;; ---- Forms -----------------------------------------------------------------

    (ring-resp/response
      {:links
       (-> {:self {:href "/forms"}
            :up {:href ""}}
           (assoc-when :prev (when (< 1 page-num) (page-link (dec page-num))))
           (assoc-when :next (when next-page? (page-link (inc page-num)))))
       :forms

   (POST "/query" [db expr] (query db expr))

   (fn [_] (ring-resp/not-found
             {:links {:up {:href "/"}}
              :error "Resource not found."}))))
