Closed (fixed)
Project:
MyREST
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
7 Aug 2026 at 12:48 UTC
Updated:
7 Aug 2026 at 12:57 UTC
Jump to comment: Most recent
MyrestRedirectEventSubscriber compares the current language against the literal 'uk' and resolves aliases with the literal 'ru'. PathByAliasGetResource hardcodes 'ru' and 'en', and MyrestHelper contains an en/uk/ru lookup table. Sites with a different language set get wrong redirects or empty responses.
LanguageManagerInterface (default language, configured languages, negotiation).Refactor the subscriber, the resource and the helper lookup table.
Optional configuration for legacy language redirects.
None.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
sergeydruua commentedComment #6
sergeydruua commented