From b5fb99c8abb49a796ae9de28a8753f1f5d51ea1e Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Mon, 10 Apr 2023 17:05:58 +1200 Subject: [PATCH] Fix category pages with slashes --- src/page-category.rkt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/page-category.rkt b/src/page-category.rkt index 29b541c..213d423 100644 --- a/src/page-category.rkt +++ b/src/page-category.rkt @@ -66,7 +66,7 @@ (define (page-category req) (response-handler (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 source-url (format "~a/wiki/~a" origin prefixed-category))