Browse Source

add redirect from /sitemap to /sitemap.xml in web.lisp (defroute).

This is just a 'catch-all' defroute.
stable
Craig Oates 2 years ago
parent
commit
a046d21dbb
  1. 3
      src/web.lisp

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

Loading…
Cancel
Save