Module does not seem to work.

Created on 2 February 2022, about 3 years ago
Updated 11 February 2024, about 1 year ago

In Drupal 9.3.3, I have enabled this module. It shows language links on every page (even if the page has no translations), and clicking on the links redirects to a URL with a query string on it for 'language_content_entity'. While it somehow does redirect, this is not really desired for a few reasons:

  • This seems to impede RTL class application by Drupal, even when 'language_content_entity' is at the top of the "Detection and selection" list for Content Language. The pages no longer have RTL applied at all.
  • The links should link to the given nodes aliased URL, not its system path + a query string with code. It also looks like it neglects to put the langcode prefix in the URL. This functionality should be retained because its simple, readable and good for SEO.
  • It adds links regardless of if the current page has translations in those languages or not. Users should not have the option or see anything in that case

I checked the README and options and don't know if I missed something but it does not appear to work for me.

πŸ› Bug report
Status

Postponed: needs info

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States kevinquillen

Live updates comments and jobs are added and updated live.
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.

  • πŸ‡«πŸ‡·France ericdsd France

    I have the same problem with core 10.1.6 as soon as "Content language" is enalbled in Content language selection (event if "url" is first). The Swithcer always generate the link by adding language_content_entity query string instend of using the right path prefix and url alias.

  • πŸ‡©πŸ‡ͺGermany szeidler Berlin

    Has someone tested this out when using simplytest.me and have been able to reproduce? I'm using the module with language path prefix and it seems to be working as expected and does not add any query string.

Production build 0.71.5 2024