This commit is contained in:
Henrique Dias 2017-08-13 10:12:13 +01:00
parent 8c5be28206
commit 0a11c52a89
No known key found for this signature in database
GPG Key ID: 936F5EB68D786730

View File

@ -67,7 +67,7 @@ func serveHTTP(c *RequestContext, w http.ResponseWriter, r *http.Request) (int,
return c.StaticGen.Preview(c, w, r)
}
if strings.HasPrefix(r.URL.Path, "/share/") && c.StaticGen != nil {
if strings.HasPrefix(r.URL.Path, "/share/") {
r.URL.Path = strings.TrimPrefix(r.URL.Path, "/share/")
return sharePage(c, w, r)
}