No Code Attached Yet bug
avatar joeforjoomla
joeforjoomla
19 Aug 2025

Steps to reproduce the issue

Use URLs with lang query string param

Expected result

All works as before

Actual result

No language is correctly detected and constructed

Image
avatar joeforjoomla joeforjoomla - open - 19 Aug 2025
avatar joomla-cms-bot joomla-cms-bot - change - 19 Aug 2025
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 19 Aug 2025
avatar Fedik Fedik - change - 20 Aug 2025
Labels Added: bug
avatar Fedik Fedik - labeled - 20 Aug 2025
avatar Fedik
Fedik - comment - 20 Aug 2025

The bug in the language tag comparison

$app = $this->getApplication();
$app->getInput()->set('language', $lang_code);
$app->set('language', $lang_code);
$language = $app->getLanguage();
if ($language->getTag() !== $lang_code) {

A short tag from the Input en compared with full tag en-GB, and then trying to load a new language by short tag which is wrong and in result does not load anything, and in the result it overrides an existing app language with empty Language object.

avatar Fedik Fedik - change - 20 Aug 2025
Status New Closed
Closed_Date 0000-00-00 00:00:00 2025-08-20 14:41:20
Closed_By Fedik
avatar Fedik Fedik - close - 20 Aug 2025
avatar Fedik
Fedik - comment - 20 Aug 2025

Please test #45947

Add a Comment

Login with GitHub to post a comment