Expectations of RouteNormalizerRequestSubscriber usage of RedirectChecker

Created on 11 June 2025, 3 months ago

When the RouteNormalizerRequestSubscriber uses the RedirectChecker here, there is no route name provided as the second parameter.

As such, how can the RedirectChecker properly check access to the route?

In a scenario where logic similar to content_translation_language_fallback_candidates_entity_view_alter() has been implemented for the entity_upcast operation (see patch from #2978048-6: Unpublished translations should fallback to the original language β†’ , πŸ› Sort out and fix language fallback inconsistencies Needs work ), I think the Redirect module will redirect to a translated url alias of an unpublished translation.

If providing the route name to the RedirectChecker::canRedirect() method, the redirect to an unpublished translation alias does not occur.

πŸ’¬ Support request
Status

Active

Version

1.11

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jasonawant New Orleans, USA

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