diff --git a/src/page-file.rkt b/src/page-file.rkt index d1a6765..6fba971 100644 --- a/src/page-file.rkt +++ b/src/page-file.rkt @@ -118,7 +118,10 @@ (if (not (jp "/exists" media-detail #f)) (next-dispatcher) (response-handler - (define title (jp "/fileTitle" media-detail)) + (define title (jp "/fileTitle" media-detail "")) + (define title (if (non-empty-string? title) + (format "File:~a" title) + prefixed-title)) (define body (generate-results-page #:source-url source-url #:wikiname wikiname