- Issue created by @sboden
- 🇬🇧United Kingdom longwave UK
This was changed in 🐛 Missing url prefix on language neutral content Fixed
- 🇬🇧United Kingdom longwave UK
I get why LANGUAGE_NOT_SPECIFIED might need a default language prefix adding, but I do wonder if LANGCODE_NOT_APPLICABLE should have one at all.
LANGCODE_NOT_APPLICABLE should in my mind not have a language prefix: I have language negotation active on my site, but openid_connect that is used for authentication is very "touchy" about the URLs that you can use.
So in Drupal 9 my custom code generated "https://mysite.com/openid_connect/acm-idm" and after upgrading to Drupal 10 that is magically changed to "https://mysite.com/nl/openid_connect/acm-idm", which breaks openid_connect.
- last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Custom Commands Failed @sboden Please do not test on every platform configuration for a small bug fix that is unrelated to database. Test bots have a cost.
- Status changed to Needs work
over 1 year ago 9:41am 7 September 2023 - 🇬🇧United Kingdom longwave UK
The in_array() can be removed now there is only one value to check.
- Status changed to Needs review
over 1 year ago 3:46am 18 September 2023 - last update
over 1 year ago Custom Commands Failed - 🇮🇳India gauravvvv Delhi, India
Removed in_array and fixed CC failure in #6. please review
Patch #9 fails: when you remove in_array() the line should be changed to a '=='.
Something as:
if (!isset($options['language']) || ($options['language'] instanceof LanguageInterface && $options['language']->getId() == LanguageInterface::LANGCODE_NOT_SPECIFIED)) {
- Status changed to Needs work
over 1 year ago 2:02pm 18 September 2023 - 🇺🇸United States smustgrave
Per #10 and will need a test case to show the problem.
- First commit to issue fork.
- Merge request !4815Issue #3385550: Language negotiation breaks updating Drupal 9 to 10 → (Open) created by rpayanm
- last update
over 1 year ago 29,471 pass, 2 fail - 🇫🇮Finland lauriii Finland
I now see that there is a valid use case for generating language neutral URLs. Since we don't know the intent in
\Drupal\language\Plugin\LanguageNegotiation\LanguageNegotiationUrl::processOutbound
at least without adding an API, I'm wondering if the right way to fix this would be to revert 🐛 Missing url prefix on language neutral content Fixed , and fix the original bug in\Drupal\Core\Entity\EntityBase::toUrl
and other instances that are generating URLs? It feels strange that\Drupal\Core\Entity\EntityBase::toUrl
would have to care about the interface language but at the same time, it seems like that it needs to care about it because that's where we know which behavior we want. - 🇬🇧United Kingdom longwave UK
@lauriii What do you think about just dropping the LANGCODE_NOT_APPLICABLE check? The original issue only mentions "language not specified", which to me means we could try to select a default, but "not applicable" means there doesn't need to be a language at all.
- 🇫🇮Finland lauriii Finland
I think you're right. We could just drop
LANGCODE_NOT_APPLICABLE
from there. However, if an entity hasLANGCODE_NOT_APPLICABLE
we may still want to generate the link with the current language to retain the UI language. I'm fine if we move that to a follow-up to address this first. - First commit to issue fork.
- 🇫🇮Finland shabbir
Have fixed the tests and now i guess its in a mergeable format.
- Status changed to Needs review
about 1 year ago 8:40am 19 December 2023 - Status changed to RTBC
about 1 year ago 8:57am 19 December 2023 - 🇫🇮Finland tuutti
We've been using this for a couple of months now and it seems to work.
- last update
about 1 year ago CI aborted - last update
about 1 year ago 25,909 pass, 1,798 fail - last update
12 months ago 25,908 pass, 1,829 fail - last update
12 months ago 25,958 pass, 1,829 fail - last update
12 months ago 25,917 pass, 1,822 fail - last update
12 months ago 25,907 pass, 1,822 fail - 🇳🇿New Zealand quietone
I'm triaging RTBC issues → . I read the IS and the comments. The issue summary is incomplete, particularly there isn't a proposed resolution. I have added the standard template but it should at least have an updated 'proposed resolution'.
#16 mentions moving some work to a follow up. I am not sure if that is still needed but I have added the tag and adding it to the remaining tasks so that gets considered.
Leaving at RTBC.
- last update
12 months ago 25,900 pass, 1,833 fail - last update
12 months ago 25,935 pass, 1,814 fail - last update
12 months ago 25,974 pass, 1,817 fail - last update
12 months ago 25,969 pass, 1,835 fail - last update
12 months ago 25,960 pass, 1,863 fail - 🇬🇧United Kingdom longwave UK
Opened 📌 Decide what to do with interface language for LANGCODE_NOT_APPLICABLE entities Active as followup. Plus, this already has tests, so removing the tag.
- 🇬🇧United Kingdom longwave UK
Committed f028872 and pushed to 11.x. Thanks!
Unsure whether this is eligible for backport. One on hand it seems like a serious bug for the URLs that it affects, but on the other hand some sites may already be used to the new buggy behaviour. Will discuss with the other committers.
- Status changed to Downport
12 months ago 1:08pm 12 January 2024 -
longwave →
committed f0288721 on 11.x
Issue #3385550 by lauriii, Gauravvvv, sboden, Shabbir, longwave:...
-
longwave →
committed f0288721 on 11.x
- 🇳🇿New Zealand quietone
I talked with longwave about this and he suggesting tagging for release notes.
- Status changed to Fixed
11 months ago 9:07am 6 February 2024 - 🇬🇧United Kingdom longwave UK
Let's just mark this as fixed in 10.3.0, as there is a minor behaviour change let's not introduce it in a patch release. Anyone who is affected by this can patch, but with only 13 followers it seems this issue is not that widespread a problem.
Automatically closed - issue fixed for 2 weeks with no activity.