Missing cache context languages:language_url when path prefix is an empty string

Created on 3 March 2020, over 4 years ago
Updated 9 July 2024, 3 months ago

If the path prefix for a site language is set to the empty string (""), then languages:language_url will not get added as a cache context in LanguageNegotiationUrl::processOutbound.

In my case, this results in urls rendered in the empty-prefix language are re-used in a non-empty-prefix language, although it should be different.

πŸ› Bug report
Status

Postponed: needs info

Version

11.0 πŸ”₯

Component
Language systemΒ  β†’

Last updated about 20 hours ago

  • Maintained by
  • πŸ‡©πŸ‡ͺGermany @sun
Created by

πŸ‡ΈπŸ‡ͺSweden Arla

Live updates comments and jobs are added and updated live.
  • D8MI

    (Drupal 8 Multilingual Initiative) is the tag used by the multilingual initiative to mark core issues (and some contributed module issues). For versions other than Drupal 8, use the i18n (Internationalization) tag on issues which involve or affect multilingual / multinational support. That is preferred over Translation.

  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¦πŸ‡ΊAustralia acbramley

    This issue was triaged as part of the Bug smash initiative.

    I'm setting this to Postponed as it has been some time since the last comment, and there are no clear steps to reproduce the issue.

    So first off, is this still reproducible on 10.3 or 11.x from a fresh install of Drupal? If so, please update the issue summary with those steps.

    Tagging with an IS update too as it is lacking detail.

    Once we confirm the issue is still present, we'll need a reroll on an MR against 11.x.

    Thanks!

Production build 0.71.5 2024