mirror of
https://gitdab.com/cadence/breezewiki.git
synced 2026-04-19 22:04:35 -04:00
Fix category pages with slashes
This commit is contained in:
@@ -66,7 +66,7 @@
|
|||||||
(define (page-category req)
|
(define (page-category req)
|
||||||
(response-handler
|
(response-handler
|
||||||
(define wikiname (path/param-path (first (url-path (request-uri req)))))
|
(define wikiname (path/param-path (first (url-path (request-uri req)))))
|
||||||
(define prefixed-category (path/param-path (caddr (url-path (request-uri req)))))
|
(define prefixed-category (string-join (map path/param-path (cddr (url-path (request-uri req)))) "/"))
|
||||||
(define origin (format "https://~a.fandom.com" wikiname))
|
(define origin (format "https://~a.fandom.com" wikiname))
|
||||||
(define source-url (format "~a/wiki/~a" origin prefixed-category))
|
(define source-url (format "~a/wiki/~a" origin prefixed-category))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user