quantum-ai-v3/core/urls.py
Claude 2f3999dabf 🔧 Fix social media link preview image display
**Fixed Open Graph Image Issues:**
- Updated static asset handling in security middleware
- Removed CSP restrictions for /static/ paths to allow social media scrapers
- Added proper cache headers for static assets (1 year cache)
- Fixed og:image dimensions to match actual image (1800x600)
- Added og:image:alt attribute for accessibility
- Added cache-busting version parameter (?v=2) to force preview refresh

**Added Debug Test Page:**
- Created /test-og/ endpoint for testing social media previews
- Displays actual meta tag URLs and image preview
- Includes testing instructions and troubleshooting tips

**Root Cause:** CSP and security headers were blocking social media crawlers from accessing the og-image.png file

**Testing:** Visit /test-og/ and use Facebook/Twitter debugging tools to verify image previews work

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-16 15:03:10 +05:30

16 lines
594 B
Python

from django.urls import path
from . import views
app_name = 'core'
urlpatterns = [
path('', views.homepage_view, name='homepage'),
path('digital-branding/', views.digital_branding_view, name='digital_branding'),
path('pricing/', views.pricing_view, name='pricing'),
path('contact/', views.contact_form_view, name='contact_form'),
path('health/', views.health_check_view, name='health_check'),
path('test-og/', views.test_og_view, name='test_og'),
# External service wrapper pages
path('<str:page_name>/', views.external_page_view, name='external_page'),
]