controller: Serve issue pages with /issue/ part.
authorRicardo Wurmus <rekado@elephly.net>
Wed, 1 Apr 2020 04:05:41 +0000 (06:05 +0200)
committerRicardo Wurmus <rekado@elephly.net>
Wed, 1 Apr 2020 04:05:41 +0000 (06:05 +0200)
mumi/web/controller.scm

index 627466b317201200005eef07cb67a97749610e1f..5487bd0d55620d34955e98bb372744c49feb50e7 100644 (file)
@@ -85,7 +85,8 @@
                                       (search-bugs (string-join terms)
                                                    #:sets s)))))
           `(p "Could not search for " (strong ,query) "."))))))
-    (('GET "issue" (? string->number id))
+    ((or ('GET "issue" (? string->number id))
+         ('GET (? string->number id)))
      (render-with-error-handling
       (lambda () (or (and=> (fetch-bug id) issue-page)
                 (unknown id)))