瀏覽代碼

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

Brit Butler 11 年之前
父節點
當前提交
85ed427969
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/documents.lisp

+ 1 - 1
src/documents.lisp

30
   (:documentation "The url to the DOCUMENT without the domain.")
30
   (:documentation "The url to the DOCUMENT without the domain.")
31
   (:method (document)
31
   (:method (document)
32
     (let* ((class-name (class-name (class-of document)))
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
       (if route
34
       (if route
35
           (format nil (second route) (slot-value document 'slug))
35
           (format nil (second route) (slot-value document 'slug))
36
           (error "No routing method found for: ~A" class-name)))))
36
           (error "No routing method found for: ~A" class-name)))))