Add tracked social share buttons#12
Open
ratnesh-maurya wants to merge 1 commit intoinitializ:mainfrom
Open
Conversation
Replace legacy data-forge attributes with explicit button IDs and data-url/data-title attributes, remove unused forgeSlug/shareText/shareUrl variables, and add client-side handlers for X, LinkedIn and Reddit. Introduces buildTrackedUrl() to append a short ref token (ref=share_<channel>_<token>) to shared URLs for basic tracking, and opens platform share windows with encoded titles/URLs (falling back to window.location.href and document.title).
Member
Author
|
Fixed share behavior for blog posts: X and LinkedIn now use the canonical post URL on useforge.ai (with ?ref=share__) instead of redirecting through go.useforge.ai, so shared links open the actual blog page directly |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replace legacy data-forge attributes with explicit button IDs and data-url/data-title attributes, remove unused forgeSlug/shareText/shareUrl variables, and add client-side handlers for X, LinkedIn and Reddit. Introduces buildTrackedUrl() to append a short ref token (ref=share__) to shared URLs for basic tracking, and opens platform share windows with encoded titles/URLs (falling back to window.location.href and document.title).