Skip to content

Commit

Permalink
Merge pull request #231 from NYPL/no_ref/fix-collections-card-links
Browse files Browse the repository at this point in the history
hotfix to fix the collection card urls
  • Loading branch information
avertrees authored Nov 18, 2024
2 parents 0a76917 + 283921e commit 531aabb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/src/models/collectionCard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ export class CollectionCardModel {
constructor(data: any) {
this.uuid = data.uuid;
this.title = data.title;
this.url =
process.env.APP_ENV === "development" || process.env.APP_ENV === "qa"
? `/collections/${stringToSlug(data.title)}`
: data.url;
this.url = data.url.replace("https://digitalcollections.nypl.org", "");
this.imageID = data.image_id || data.imageID;
this.imageURL = imageURL(data.imageID, "full", "288,", "0");
this.numberOfDigitizedItems =
Expand Down

0 comments on commit 531aabb

Please sign in to comment.