Problem/Motivation
When upgrading from 10.5 to Drupal 11.3 I started to get 404 when trying to load /admin/* paths.
Proposed resolution
When checking the table router there are paths that have pattern_outline empty. This causes the 404.

$sql = "SELECT name, path, pattern_outline FROM {router} WHERE :path LIKE CONCAT(pattern_outline, '%') AND pattern_outline != '/'";
Adding to the clause to not get empty pattern_outline should fix this.
$sql = "SELECT name, path, pattern_outline FROM {router} WHERE :path LIKE CONCAT(pattern_outline, '%') AND pattern_outline != '/' AND pattern_outline != ''";
Comments
Comment #3
eescribanoc commentedComment #4
elamanTested the patch and it works.
Comment #5
elamanComment #6
djdevinPatch also works for me. This also affected a lot of other non-admin paths.
Comment #7
joseph.olstadComment #9
joseph.olstadComment #11
joseph.olstadComment #12
joseph.olstadhttps://www.drupal.org/project/fast_404/releases/8.x-3.7