Selaa lähdekoodia

Minor bugfix to PAGE-URL. Never use the wrong data in testing.

Brit Butler 11 vuotta sitten
vanhempi
commit
85ed427969
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/documents.lisp

+ 1 - 1
src/documents.lisp

@@ -30,7 +30,7 @@
30 30
   (:documentation "The url to the DOCUMENT without the domain.")
31 31
   (:method (document)
32 32
     (let* ((class-name (class-name (class-of document)))
33
-           (route (assoc class-name (routing *config*))))
33
+           (route (assoc (make-keyword class-name) (routing *config*))))
34 34
       (if route
35 35
           (format nil (second route) (slot-value document 'slug))
36 36
           (error "No routing method found for: ~A" class-name)))))