ResourceNotFoundException breaks table rebuild

Created on 11 July 2025, about 1 month ago

Problem/Motivation

When building or rebuilding the views_url_alias table, if there are aliases in the path_alias table that can't be matched to a route, the process fails with a ResourceNotFoundException. This leaves the alias table in a partial state with missing aliases.

Steps to reproduce

Create an alias to a controller url and then remove/change the controller route.
Try to rebuild the table.

Proposed resolution

Wrap the router->match($alias) call in a try / catch and log a bad alias message.

Remaining tasks

Have a patch to add once the issue is created.

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

3.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States cgmonroe

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

Comments & Activities

Production build 0.71.5 2024