mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 04:17:23 +00:00
SEO for collection page.
This commit is contained in:
@@ -133,8 +133,8 @@ func serveIndexHtml(c fiber.Ctx) error {
|
||||
preFetchData = url.PathEscape(string(preFetchDataJson))
|
||||
}
|
||||
}
|
||||
} else if strings.HasPrefix(path, "/collections/") {
|
||||
collectionIDStr := strings.TrimPrefix(path, "/collections/")
|
||||
} else if strings.HasPrefix(path, "/collection/") {
|
||||
collectionIDStr := strings.TrimPrefix(path, "/collection/")
|
||||
collectionID, err := strconv.Atoi(collectionIDStr)
|
||||
if err == nil {
|
||||
coll, err := service.GetCollectionByID(uint(collectionID))
|
||||
|
Reference in New Issue
Block a user