Contribution Date
Technology
Contribution Project
Contribution Details
I checked it on 3 different sites with Drupal versions mentioned below, And the issue still exists:
- 9.0.5
- 8.9.3
- 8.8.4
Steps in #13 mentioned this being the problem with language detection method of session
, But I think its beyond that and is rather true of other language detection methods as well.
Assumption: The default site language is English.
Steps to reproduce:
- Enable
language
&content_translation
modules - Go to the path
admin/config/regional/language
. AddSpanish
&French
languages. - Go to the path
/admin/config/regional/language/detection
and ensure your language detection and selection methods for Interface text language detection and Content language detection are set toURL
. [I don't this step matters and the issue exists for other detection and selection methods too. I have mentioned this step as I tested the whole thing with this config. See attached screenshot for the config.] - Create an content type such that its translatable(See attached screenshot for content type configuration)
- Add content in
English
and add URL alias - Translate the English node to
Spanish
such that it also has alias. [This step is optional] - Now,
Change the language of English node to French
. Without doing anything to URL alias, Save the node. - Edit the newly saved node and You will notice that the URL Alias is no longer present on it.
Summary: Changing the language of source translation is causing the node to loose its URL alias.
Contribution Issue Link
Contribution Link
Files count
0
Patches count
0