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