breezewiki/src/page-redirect-wiki-home.rkt

16 lines
393 B
Racket
Raw Normal View History

2022-09-09 03:42:20 +00:00
#lang racket/base
(require net/url
web-server/http
"application-globals.rkt"
"url-utils.rkt"
"xexpr-utils.rkt")
(provide
redirect-wiki-home)
(define (redirect-wiki-home req)
(response-handler
(define wikiname (path/param-path (car (url-path (request-uri req)))))
2022-09-09 11:41:33 +00:00
(define dest (format "/~a/wiki/Main_Page" wikiname))
2022-09-09 03:42:20 +00:00
(generate-redirect dest)))