diff --git a/server/middleware/frontend_middleware.go b/server/middleware/frontend_middleware.go index fe7e1c8..9a253a9 100644 --- a/server/middleware/frontend_middleware.go +++ b/server/middleware/frontend_middleware.go @@ -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))