- 🇳🇱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
about 1 year ago 8:10pm 18 March 2024 - 🇳🇱Netherlands seanB Netherlands
Attached is a patch that seems to solve the issue.
- Status changed to Needs work
about 1 year 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()
- 🇫🇮Finland jhuhta
#9: I think we should inject the language manager instead of calling
\Drupal::languageManager()
if this change is necessary. And continue from the previous merge request too.