mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-23 14:11:13 -05:00
Update OG fallback image
This commit is contained in:
@@ -26,11 +26,11 @@ export function useOpenGraph({
|
||||
if (!enabled || !title) return;
|
||||
|
||||
// Determine the image to use
|
||||
let finalImageUrl = '/og-image.png';
|
||||
let finalImageUrl = 'https://cdn.thrillwiki.com/images/4af6a0c6-4450-497d-772f-08da62274100/original';
|
||||
|
||||
if (imageId) {
|
||||
const bannerUrls = getBannerUrls(imageId);
|
||||
finalImageUrl = bannerUrls.desktop || imageUrl || '/og-image.png';
|
||||
finalImageUrl = bannerUrls.desktop || imageUrl || 'https://cdn.thrillwiki.com/images/4af6a0c6-4450-497d-772f-08da62274100/original';
|
||||
} else if (imageUrl) {
|
||||
finalImageUrl = imageUrl;
|
||||
}
|
||||
@@ -55,12 +55,12 @@ export function useOpenGraph({
|
||||
return () => {
|
||||
updateMetaTag('og:title', 'ThrillWiki - Theme Park & Roller Coaster Database');
|
||||
updateMetaTag('og:description', 'Explore theme parks and roller coasters worldwide with ThrillWiki - the comprehensive database for enthusiasts');
|
||||
updateMetaTag('og:image', window.location.origin + '/og-image.png');
|
||||
updateMetaTag('og:image', 'https://cdn.thrillwiki.com/images/4af6a0c6-4450-497d-772f-08da62274100/original');
|
||||
updateMetaTag('og:type', 'website');
|
||||
|
||||
updateMetaTag('twitter:title', 'ThrillWiki - Theme Park & Roller Coaster Database', 'name');
|
||||
updateMetaTag('twitter:description', 'Explore theme parks and roller coasters worldwide with ThrillWiki - the comprehensive database for enthusiasts', 'name');
|
||||
updateMetaTag('twitter:image', window.location.origin + '/og-image.png', 'name');
|
||||
updateMetaTag('twitter:image', 'https://cdn.thrillwiki.com/images/4af6a0c6-4450-497d-772f-08da62274100/original', 'name');
|
||||
};
|
||||
}, [title, description, imageUrl, imageId, type, currentUrl, enabled]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user