'is-active' class is not set in Language switcher for non-default language

Created on 8 November 2016, over 8 years ago
Updated 17 March 2023, about 2 years ago

PHP 7.0.8
Drupal 8.2.2
2 Languages installed - Latvian and English
Latvian is set to be the default language
Language - Detection and selection (/admin/config/regional/language/detection) configuration:
URL (en prefix for English, epmty prefix for Latvian)
Selected language (Latvian) - this is "fallback language" if no language is detected...

Exactly the same setup (e.g. db dump) works on PHP 5.6.7


If I select the Latvian language - the class appears in the language switcher for Latvian language
If I select English language - both elements in the language switcher has no class

🐛 Bug report
Status

Closed: outdated

Version

9.5

Component
Language system 

Last updated 7 days ago

  • Maintained by
  • 🇩🇪Germany @sun
Created by

🇱🇻Latvia nor4a

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.

  • 🇳🇿New Zealand quietone

    @Nor4a, Thank you for reporting this problem. We rely on issue reports like this to improve Drupal core.

    I tested this on 10.1, standard install, with Italian as the second language and was not able to reproduce this error. I followed the steps given in the Issue Summary. With Italian as the default language, the language switcher always has one link with 'is-active'.

    Therefore, closing as outdated. If you are experiencing this problem on a supported version of Drupal reopen the issue, by setting the status to 'Active', and provide complete steps to reproduce the issue (starting from "Install Drupal core").

    Thanks!

Production build 0.71.5 2024