|
|
|
|
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)))))
|