Skip to content

Only render homepage entry for HTML requests#2432

Merged
tf merged 1 commit into
codevise:masterfrom
tf:missing-templ-fix
Jun 8, 2026
Merged

Only render homepage entry for HTML requests#2432
tf merged 1 commit into
codevise:masterfrom
tf:missing-templ-fix

Conversation

@tf

@tf tf commented Jun 8, 2026

Copy link
Copy Markdown
Member

Requests to a site's homepage entry with a non-HTML Accept header (e.g. text/plain from crawlers) were delegated to the entry type frontend app, which then failed to render and raised ActionView::MissingTemplate, producing 500 errors. Mirror the show action and only delegate for HTML requests, so other formats respond with not found instead.

Requests to a site's homepage entry with a non-HTML Accept header
(e.g. text/plain from crawlers) were delegated to the entry type
frontend app, which then failed to render and raised
ActionView::MissingTemplate, producing 500 errors. Mirror the show
action and only delegate for HTML requests, so other formats respond
with not found instead.
@tf tf added this to the v17.2 milestone Jun 8, 2026
@tf tf merged commit 9494b84 into codevise:master Jun 8, 2026
16 checks passed
@tf tf deleted the missing-templ-fix branch June 9, 2026 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant