diff --git a/rHistory.go b/rHistory.go index b3684f9..dedf7f5 100644 --- a/rHistory.go +++ b/rHistory.go @@ -20,6 +20,11 @@ func (this *WikiServer) routeHistory(w http.ResponseWriter, r *http.Request, art return } + if len(revs) == 0 { + this.serveErrorHTMLMessage(w, this.noSuchArticleError(articleTitle)) + return + } + pto := DefaultPageTemplateOptions(this.opts) pto.CurrentPageName = articleTitle pto.CurrentPageIsArticle = true