Skip to content

Commit 0b1c801

Browse files
vahid-ahmadiclaude
andcommitted
fix: use absolute path for GeoJSON in constituency map
- Change from relative path to absolute path - Fixes map not loading when displayed in iframe - Path: /assets/posts/scottish-budget-2026-income-tax-threshold-uplift/uk_constituencies_2024.geojson Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent ef4dc95 commit 0b1c801

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/public/assets/posts/scottish-budget-2026-income-tax-threshold-uplift/constituency_map_income_tax_threshold_uplift.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@
358358

359359
// Load GeoJSON and initialize map
360360
async function initMap() {
361-
const geoData = await d3.json("uk_constituencies_2024.geojson");
361+
const geoData = await d3.json("/assets/posts/scottish-budget-2026-income-tax-threshold-uplift/uk_constituencies_2024.geojson");
362362

363363
const scottishFeatures = geoData.features.filter(f =>
364364
f.properties.GSScode && f.properties.GSScode.startsWith('S')

0 commit comments

Comments
 (0)