Skip to content

Commit

Permalink
Fix: Issue 663 social links (#706)
Browse files Browse the repository at this point in the history
Co-authored-by: JR Reed <[email protected]>
  • Loading branch information
nfpappas-oddball and mreed101 authored Sep 18, 2024
1 parent 2c1cf76 commit 56afbb3
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/data/queries/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const formatter: QueryFormatter<NodeEvent, Event> = (
date: entity.created,
lastUpdated: entity.changed,
socialLinks: {
path: entity.path.alias,
path: `${process.env.SITE_URL}${entity.path.alias}`,
title: entity.title,
},
listing: entity.field_listing.path.alias,
Expand Down
2 changes: 1 addition & 1 deletion src/data/queries/newsStory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const formatter: QueryFormatter<NodeNewsStory, NewsStory> = (
bodyContent: entity.field_full_story,
date: entity.created,
socialLinks: {
path: entity.path.alias,
path: `${process.env.SITE_URL}${entity.path.alias}`,
title: entity.title,
},
listing: entity.field_listing.path.alias,
Expand Down
2 changes: 1 addition & 1 deletion src/data/queries/newsStoryTeaser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const formatter: QueryFormatter<NodeNewsStory, NewsStoryTeaser> = (
headingLevel: 'h2', //@todo fix headingLevel,
title: entity.title,
image: queries.formatData('media--image', entity.field_media), //cropType: '2_1_large'
link: entity.path.alias,
link: `${entity.path.alias}`,
introText: entity.field_intro_text,
lastUpdated: entity.field_last_saved_by_an_editor || entity.created,
}
Expand Down
2 changes: 1 addition & 1 deletion src/data/queries/tests/__snapshots__/event.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ exports[`node--event formatData outputs formatted data 1`] = `
"published": true,
"registrationRequired": false,
"socialLinks": {
"path": "/central-iowa-health-care/events/52265",
"path": "http://127.0.0.1:8001/central-iowa-health-care/events/52265",
"title": "Pickleball Club",
},
"title": "Pickleball Club",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ exports[`node--news_story formatData outputs formatted data 1`] = `
"moderationState": "published",
"published": true,
"socialLinks": {
"path": "/pittsburgh-health-care/stories/we-honor-outstanding-doctors",
"path": "http://127.0.0.1:8001/pittsburgh-health-care/stories/we-honor-outstanding-doctors",
"title": "We honor outstanding doctors",
},
"title": "We honor outstanding doctors",
Expand Down

0 comments on commit 56afbb3

Please sign in to comment.