Skip to content
Snippets Groups Projects
user avatar
Oliver Hader authored
Symfony's UrlMatcher takes multiple routes and returns the first
match. However there might be better matches that are not considered
at all. That's why a custom BestUrlMatcher is introduce, which
resolves all matches for further reduction.

Previously the route collection was sorted by names and identifiers,
which now has been adjusted to focus on the actual matches when being
compared to the current request. The fallback route (site base URI).
This way, overlapping route definitions can be resolved better.

Resolves: #93240
Releases: main, 11.5
Change-Id: Ib1a7361dc86ed48a474d5e55583a622df58e8939
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/76464


Tested-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarSusanne Moog <look@susi.dev>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarOliver Hader <oliver.hader@typo3.org>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarSusanne Moog <look@susi.dev>
Reviewed-by: default avatarOliver Hader <oliver.hader@typo3.org>
adc8b440
Name Last commit Last update