- π³π±Netherlands seanB Netherlands
This doesn't seem to fix the following use case:
- Add the Dutch language (default, no prefix) and English language (with a /en prefix).
- Edit a Dutch node, linking to a different Dutch page using the English admin language.
- When a module calls
PathValidator::getUrlIfValidWithoutAccessCheck()
for the link, you run into the same issue.
Found this while looking at π processUrl Cannot Find the Correct Entity in Multilingual Site Active .
We could use the language with an empty language prefix as the default langcode. I think that should fix the issue. - Status changed to Needs review
8 months ago 8:10pm 18 March 2024 - π³π±Netherlands seanB Netherlands
Attached is a patch that seems to solve the issue.
- Status changed to Needs work
8 months ago 8:24pm 18 March 2024 The Needs Review Queue Bot β tested this issue.
While you are making the above changes, we recommend that you convert this patch to a merge request β . Merge requests are preferred over patches. Be sure to hide the old patch files as well. (Converting an issue to a merge request without other contributions to the issue will not receive credit.)
- Merge request !7086Issue #3314941: Language-prefixed alias paths cannot be correctly routed inside a request β (Open) created by seanB
- π¬π·Greece dspachos
Patch enhanced to coner also the
getUrlIfValidWithoutAccessCheck()