Skip to content

Commit aff4664

Browse files
MaxGhenisclaude
andcommitted
Redirect obbba-household-explorer to obbba-household-by-household
- Update app slug from obbba-household-explorer to obbba-household-by-household - Add redirect component for backward compatibility - Rename blog post and image files to match new slug - Update posts.json references Fixes #2693 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 6802318 commit aff4664

7 files changed

Lines changed: 34 additions & 17 deletions

File tree

src/PolicyEngine.jsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ import style from "./style";
4444
import RedirectToCountry from "./routing/RedirectToCountry";
4545
import CountryIdLayout from "./routing/CountryIdLayout";
4646
import RedirectBlogPost from "./routing/RedirectBlogPost";
47+
import RedirectOBBBAHouseholdExplorer from "./routing/RedirectOBBBAHouseholdExplorer";
4748
import { StatusPage } from "./pages/StatusPage";
4849
import ManifestosComparison from "./applets/ManifestosComparison";
4950
import DeveloperLayout from "./pages/DeveloperLayout";
@@ -386,6 +387,11 @@ export default function PolicyEngine() {
386387
/>
387388
{/* redirect from /countryId/blog/slug to /countryId/research/slug */}
388389
<Route path="blog/:postName" element={<RedirectBlogPost />} />
390+
{/* redirect from old obbba-household-explorer to obbba-household-by-household */}
391+
<Route
392+
path="obbba-household-explorer"
393+
element={<RedirectOBBBAHouseholdExplorer />}
394+
/>
389395
</Route>
390396
<Route path="/uk/cec" element={<CitizensEconomicCouncil />} />
391397
<Route path="/uk/2024-manifestos" element={<ManifestosComparison />} />

src/apps/apps.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"title": "OBBBA household impact explorer",
44
"description": "Interactive tool to explore household-level impacts of the One Big Beautiful Bill Act",
55
"url": "https://policyengine.github.io/obbba-scatter",
6-
"slug": "obbba-household-explorer",
6+
"slug": "obbba-household-by-household",
77
"tags": ["us", "featured", "policy"]
88
}
99
]

src/images/posts/introducing-obbba-household-explorer.png renamed to src/images/posts/introducing-obbba-household-by-household.png

File renamed without changes.

src/posts/articles/introducing-obbba-household-explorer.md renamed to src/posts/articles/introducing-obbba-household-by-household.md

File renamed without changes.

src/posts/posts.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"description": "New interactive tool reveals household-level impacts of the One Big Beautiful Bill Act.",
1414
"date": "2025-07-03",
1515
"tags": ["us", "policy", "featured", "reconciliation"],
16-
"filename": "introducing-obbba-household-explorer.md",
17-
"image": "introducing-obbba-household-explorer.png",
16+
"filename": "introducing-obbba-household-by-household.md",
17+
"image": "introducing-obbba-household-by-household.png",
1818
"authors": ["max-ghenis", "pavel-makarchuk", "elena-cura"]
1919
},
2020
{
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { Navigate, useParams } from "react-router-dom";
2+
3+
export default function RedirectOBBBAHouseholdExplorer() {
4+
const { countryId } = useParams();
5+
6+
return <Navigate to={`/${countryId}/obbba-household-by-household`} replace />;
7+
}

test-iframe.html

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,25 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html>
3-
<head>
3+
<head>
44
<title>Test OBBBA Iframe</title>
5-
</head>
6-
<body>
5+
</head>
6+
<body>
77
<h1>Testing OBBBA Iframe URL Construction</h1>
8-
8+
99
<p>Direct iframe with query parameters:</p>
10-
<iframe
11-
src="https://policyengine.github.io/obbba-scatter?household=46067&baseline=tcja-expiration"
12-
width="100%"
13-
height="600"
14-
style="border: 2px solid red;">
10+
<iframe
11+
src="https://policyengine.github.io/obbba-scatter?household=46067&baseline=tcja-expiration"
12+
width="100%"
13+
height="600"
14+
style="border: 2px solid red"
15+
>
1516
</iframe>
16-
17+
1718
<script>
18-
console.log('Iframe URL:', 'https://policyengine.github.io/obbba-scatter?household=46067&baseline=tcja-expiration');
19+
console.log(
20+
"Iframe URL:",
21+
"https://policyengine.github.io/obbba-scatter?household=46067&baseline=tcja-expiration",
22+
);
1923
</script>
20-
</body>
21-
</html>
24+
</body>
25+
</html>

0 commit comments

Comments
 (0)