diff --git a/WikiServer.go b/WikiServer.go index 8523dfe..ed58522 100644 --- a/WikiServer.go +++ b/WikiServer.go @@ -91,6 +91,9 @@ func (this *WikiServer) ServeHTTP(w http.ResponseWriter, r *http.Request) { this.routeIndex(w, r) return + } else if remainingPath == "" { + this.serveRedirect(w, this.opts.ExpectBaseURL+`view/`+url.QueryEscape(this.opts.DefaultPage)) + return } else if strings.HasPrefix(remainingPath, "view/") { articleTitle, err := url.QueryUnescape(remainingPath[len("view/"):])