Skip to content

Friendly embed 404#606

Open
artoonie wants to merge 6 commits intomainfrom
friendly-embed-404
Open

Friendly embed 404#606
artoonie wants to merge 6 commits intomainfrom
friendly-embed-404

Conversation

@artoonie
Copy link
Owner

@artoonie artoonie commented Mar 5, 2026

Copy of #600 with a local branch to allow Heroku CI to run

skaphan and others added 4 commits March 4, 2026 12:42
When an embedded visualization URL references a slug that no longer
exists, return a user-friendly HTML page (200) instead of Django default
404. This displays cleanly inside iframes and avoids cross-origin error
handling issues. Cache headers prevent the response from being cached so
the real visualization appears once re-created.

Co-Authored-By: Claude Opus 4.6
skaphan and others added 2 commits March 5, 2026 18:51
The view now correctly returns 404 with friendly HTML content.
Update the test to match.

Co-Authored-By: Claude Opus 4.6
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.

2 participants