Skip to content

Agent fiendly 404s feedback - #500

Merged
thibaudcolas merged 2 commits into
wagtail:mainfrom
albinazs:agent-fiendly-404s-feedback
Oct 12, 2026
Merged

thibaudcolas merged 2 commits into
wagtail:mainfrom
albinazs:agent-fiendly-404s-feedback

Conversation

@albinazs

@albinazs albinazs commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Description

Follow-up to #495, addressing review feedback.

  • Fix fallback pages on 404s. Newer Wagtail replaces any Http404 from route() with a plain one, so Custom404.fallback_pages never reached the handler. The handler now looks them up itself, and the Markdown 404 lists them too.
  • Absolute links in Markdown 404s.
  • /test404/ uses the real 404 handler (DEBUG only). /fr/test404/tutorial/ shows fallback pages.

Added tests for fallback pages in HTML and Markdown.

AI usage

AI-assisted issue investigation, code generation, and PR description.

@albinazs
albinazs requested a review from thibaudcolas October 5, 2026 16:52
@thibaudcolas
thibaudcolas force-pushed the agent-fiendly-404s-feedback branch from ddb68ed to b791237 Compare October 12, 2026 16:01
@thibaudcolas
thibaudcolas merged commit 89f51a7 into wagtail:main Oct 12, 2026
2 checks passed
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