Skip to content

Serve the app under /us/snap-payment-error-simulator - #23

Merged
MaxGhenis merged 1 commit into
mainfrom
pe-path
Aug 10, 2026
Merged

Serve the app under /us/snap-payment-error-simulator#23
MaxGhenis merged 1 commit into
mainfrom
pe-path

Conversation

@MaxGhenis

Copy link
Copy Markdown
Contributor

Sister change to the policyengine-app-v2 mount: the site rewrites /us/snap-payment-error-simulator to this app's origin at the same path, so the app now serves identically at both / and the slug path — base href for relative assets, vercel.json rewrites (explicit paper rules for trailing-slash variants), relative footer paper link, canonical og:url on policyengine.org. Already deployed and verified live at both origins including /paper and versioned assets; this PR lands the matching source.

🤖 Generated with Claude Code

….org

policyengine.org mounts external tools by rewriting
/us/<slug> to the tool's own origin at the same path, so the app now
answers identically at / and /us/snap-payment-error-simulator: a base
href pins every relative asset and fetch to the slug path, vercel.json
rewrites map the slug tree (with explicit paper rules for
trailing-slash variants) back to the root files, the footer paper link
goes relative, and the canonical og:url moves to the policyengine.org
address. Verified live on production at both origins, including the
paper and versioned assets.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@MaxGhenis
MaxGhenis merged commit 291e0cc into main Aug 10, 2026
1 check passed
@MaxGhenis
MaxGhenis deleted the pe-path branch August 10, 2026 02:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant