Skip to content

Commit

Permalink
Merge pull request #234 from NYPL/no_ref/soft-launch-divisions
Browse files Browse the repository at this point in the history
Hot fix: Soft launch divisions, more collection url debugging
  • Loading branch information
7emansell authored Nov 18, 2024
2 parents c93f207 + bcfb79d commit a6d44f3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions app/src/models/collectionCard.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// import { CollectionCardData } from "app/types/Collection";
import { imageURL } from "../utils/utils";
import { stringToSlug } from "../utils/utils";
import { parseBoolean } from "../utils/utils";

// TODO: Connect to typescript interface for CollectionCardData
Expand All @@ -16,7 +15,7 @@ export class CollectionCardModel {
constructor(data: any) {
this.uuid = data.uuid;
this.title = data.title;
this.url = data.url.replace("https://digitalcollections.nypl.org", "");
this.url = `/collections/${data.uuid}`;
this.imageID = data.image_id || data.imageID;
this.imageURL = imageURL(data.imageID, "full", "288,", "0");
this.numberOfDigitizedItems =
Expand Down
2 changes: 0 additions & 2 deletions middleware.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ export const config = {
matcher: [
"/collections",
"/collections/:path*",
"/divisions",
"/divisions/:path*",
"/items/:path*",
"/search/:path*",
],
Expand Down

0 comments on commit a6d44f3

Please sign in to comment.