Improve social media image and URL generation for better sharing
Update social media image URL to use cache-busting with current timestamp and prioritize Bunny.net thumbnail. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 2cd2c0bc-434c-4bc9-ad3f-b99d3897a0d1 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/2cd2c0bc-434c-4bc9-ad3f-b99d3897a0d1/HCAS0JG
This commit is contained in:
+1
-1
@@ -119,7 +119,7 @@
|
||||
<script>
|
||||
// Set dynamic URLs based on current domain
|
||||
const currentOrigin = window.location.origin;
|
||||
const socialImageUrl = `${currentOrigin}/api/social-image?v=2025`;
|
||||
const socialImageUrl = `${currentOrigin}/api/social-image?v=${Date.now()}`;
|
||||
|
||||
// Update meta tags with correct URLs
|
||||
document.getElementById('og-url').setAttribute('content', currentOrigin + '/');
|
||||
|
||||
Reference in New Issue
Block a user