Skip to content

Comments

Fix : Pinterest share link using wrong description and media#907

Closed
NITHINSPACETIME wants to merge 2 commits intotheNewDynamic:mainfrom
NITHINSPACETIME:main
Closed

Fix : Pinterest share link using wrong description and media#907
NITHINSPACETIME wants to merge 2 commits intotheNewDynamic:mainfrom
NITHINSPACETIME:main

Conversation

@NITHINSPACETIME
Copy link
Contributor

Fixes #812

Hey, I noticed the Pinterest share link was broken - it was using the page summary (super long text) for the description and the page URL for the media parameter instead of the actual image.

What was happening:

  • description → page summary (way too verbose, sometimes causes errors)
  • media → just the page permalink (not an image at all)

The fix:

  • Changed Pinterest config to use the page title for description (short and clean)
  • Added support for featured_image in the share link builder
  • Now it grabs the actual featured image URL using the existing GetFeaturedImage.html partial

Tested locally and the share links look correct now.

Fixes theNewDynamic#812

- Added 'featured_image' value type support in getShareLink.html partial
- Uses existing GetFeaturedImage.html partial to get image URL
- Updated Pinterest particles config to use correct mappings:
  - description: title (was: summary)
  - media: featured_image (was: permalink)
@davidsneighbour
Copy link
Collaborator

Thank you. Please break that into two PRs. One that implements featured_image to the replacement variables (document the change into docs/configuration/social-media-networks.md around line 186) and the other with the pinterest fix.

@NITHINSPACETIME
Copy link
Contributor Author

Thank you. Please break that into two PRs. One that implements featured_image to the replacement variables (document the change into docs/configuration/social-media-networks.md around line 186) and the other with the pinterest fix.

Sure, I'll split this into two PRs. Will update shortly...

@NITHINSPACETIME
Copy link
Contributor Author

Thanks! I've split this into two separate PRs as requested: #909 (for the variable) and #910 (for the Pinterest fix). Closing this one now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: Pinterest social share link not generated correctly.

2 participants