ResourceNotFoundException on 404 pages

Created on 12 October 2024, 2 months ago

Problem/Motivation

This seems to be a follow on from #3291943: When rendering facets on non search page, it throws error instead of 404 on 404 pages - although it may also be related to 🐛 ResourceNotFoundException with ajax facets when site running in subfolder Needs review

We initially thought our problem related to better_exposed_filters - see 🐛 Error when added to 404 pages Postponed: needs info

Steps to reproduce

1. add a facets block that appears on every page
2. visit a 404 page

Proposed resolution

Add a try/catch to the block build method

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom malcomio

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024