Steps to reproduce:

1. Install Drupal 8.3.7 (I used: https://simplytest.me/)
2. Enable all 4 multilingual modules (/admin/modules)
3. Add Spanish language (/admin/config/regional/language)
4. Place language switcher block in header region (/admin/structure/block)
5. Make basic pages translatable (/admin/config/regional/content-language - check Content, then Basic page, and Save configuration)
6. Add a basic page (/node/add/page: Title: Test; Body: Hello world!; URL path: hello-world)
7. Add Spanish translation (/node/1/translations/add/en/es - Title: Análisis; Body: ¡Hola mundo!; URL path: hola-mundo)
8. Enable interface text language detection of account administration pages (/admin/config/regional/language/detection)

8

9. Set administration pages language to English (/user/1/edit)

9

10. Hit Contenido (the toolbar remains in Spanish), now the admin UI is in English. Working as expected, until I clear the cache (/admin/config/development/performance - Clear all caches) navigate to the Spanish page (/es/hola-mundo): No page is found

10

11. Check the content overview and the page still appears to be there (/admin/content)

11

12. Try to edit the Spanish translation and it appears no longer to exist (/es/node/1/edit)?

12

13. If I disable interface text language detection of account administration pages (/admin/config/regional/language/detection) and clear the cache, then the page is found again (/es/hola-mundo)?

13

Comments

24ma13wg created an issue. See original summary.

jbd44’s picture

I've tested and reproduced the same problem on 8.4.0-rc2.

maacl’s picture

This might be related to https://www.drupal.org/node/2802403.
I guess in step 10 the Pathprocessor tries to find a node behind the spanish alias while having set english as interface language, does not find anything because the alias is only available in spanish, and caches the empty result. You can check this in the database in the cache_data table. If you call the spanish alias with spanish interface language first, you should see in the data blob the node id. If you visit with english interface first, the blob contains no information about the node and leads to a 404 on next page call of that alias.

Version: 8.3.7 » 8.3.x-dev

Core issues are now filed against the dev versions where changes will be made. Document the specific release you are using in your issue comment. More information about choosing a version.

Version: 8.3.x-dev » 8.9.x-dev

Drupal 8.8.7 was released on June 3, 2020 and is the final full bugfix release for the Drupal 8.8.x series. Branches prior to 8.8.x are not supported, and Drupal 8.8.x will not receive any further development aside from security fixes. Sites should prepare to update to Drupal 8.9.0 or Drupal 9.0.0 for ongoing support.

Bug reports should be targeted against the 8.9.x-dev branch from now on, and new development or disruptive changes should be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.9.x-dev » 9.2.x-dev

Drupal 8 is end-of-life as of November 17, 2021. There will not be further changes made to Drupal 8. Bugfixes are now made to the 9.3.x and higher branches only. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.2.x-dev » 9.3.x-dev

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.15 was released on June 1st, 2022 and is the final full bugfix release for the Drupal 9.3.x series. Drupal 9.3.x will not receive any further development aside from security fixes. Drupal 9 bug reports should be targeted for the 9.4.x-dev branch from now on, and new development or disruptive changes should be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

smustgrave’s picture

Status: Active » Closed (outdated)

Just tested following the steps in the description (by the way FANTASTIC steps, made it super easy). I was not able to replicate on Drupal 9.5.x

Closing as outdated but if you still see it as an issue please reopen and where you are seeing it.

Again fantastic description!