From a046d21dbbf944f97f60251cda989406b8c9b60c Mon Sep 17 00:00:00 2001 From: Craig Oates Date: Sat, 22 Oct 2022 17:15:31 +0100 Subject: [PATCH] add redirect from /sitemap to /sitemap.xml in web.lisp (defroute). This is just a 'catch-all' defroute. --- src/web.lisp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/web.lisp b/src/web.lisp index bb6de6f..2e36db3 100644 --- a/src/web.lisp +++ b/src/web.lisp @@ -1447,6 +1447,9 @@ :nav-menu ,(nera:nav-menu-slugs) :system-data ,(nera:system-data))))) +(defroute ("/sitemap" :method :GET) () + (redirect "/sitemap.xml")) + (defroute ("/sitemap.xml" :method :GET) () (setf (getf (response-headers *response*) :content-type) "application/xml") (with-output-to-string (stream)