From 0290452fb61145587dc74e11925e9b4eb9160d83 Mon Sep 17 00:00:00 2001 From: Jakob L. Kreuze Date: Sat, 11 Jul 2026 16:40:02 -0400 Subject: URI anchoring fix --- weeb/router.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'weeb') diff --git a/weeb/router.scm b/weeb/router.scm index 689084a..20f129d 100644 --- a/weeb/router.scm +++ b/weeb/router.scm @@ -37,7 +37,10 @@ (substring template 1 (- (string-length template) 1)) (substring template 1)) #\/))) - (values (string-append "/" (string-join (map cadr components) "/")) + (values (string-append "^/" + (string-join (map cadr components) "/") + (if trailing-slash? "/?" "") + "$") (filter symbol? (map car components)))) (define (handle-route request route-object) -- cgit v1.3