浏览代码

PAGE-URL should always return a pathname.

Brit Butler 11 年之前
父节点
当前提交
235b727017
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/documents.lisp

+ 1 - 1
src/documents.lisp

37
 (defmethod page-url :around ((document t))
37
 (defmethod page-url :around ((document t))
38
   (let ((result (call-next-method)))
38
   (let ((result (call-next-method)))
39
     (if (pathname-type result)
39
     (if (pathname-type result)
40
-        result
40
+        (make-pathname :defaults result)
41
         (make-pathname :type "html" :defaults result))))
41
         (make-pathname :type "html" :defaults result))))
42
 
42
 
43
 (defgeneric render (document &key &allow-other-keys)
43
 (defgeneric render (document &key &allow-other-keys)