Fix reader for new books
This commit is contained in:
parent
de0fd4227c
commit
3337ffaf82
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ func readHandler(coll *mgo.Collection) func(http.ResponseWriter, *http.Request)
|
|||
}
|
||||
baseContent := "/content/"
|
||||
if base == "/readnew/" {
|
||||
base = "/contentnew/"
|
||||
baseContent = "/contentnew/"
|
||||
}
|
||||
data.Content = genLink(id, baseContent, file)
|
||||
loadTemplate(w, "read", data)
|
||||
|
|
Reference in a new issue