Skip to content
Snippets Groups Projects
Commit adc8b440 authored by Oliver Hader's avatar Oliver Hader Committed by Oliver Hader
Browse files

[BUGFIX] Ensure best matching URL is used during site resolving

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>
parent 9872a5e0
Branches
Tags
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment