The before_request handler loaded the entry but didn't abort when it was None, causing template UndefinedError when building URLs with entry.id. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>