mirror of
https://github.com/thecyberlearn/quantum-ai-v3.git
synced 2026-08-18 18:12:56 +00:00
**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>
16 lines
594 B
Python
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'),
|
|
] |