Yagnesh
(Yagnesh Nayi)
March 21, 2025, 8:49am
1
Description
When enabling multiple languages in Open edX with the Indigo theme, the language switch dropdown generates an incorrect URL. The issue is caused by the following line in the header.html
file:
File: tutorindigo/templates/indigo/lms/templates/header/header.html
value="${reverse('session_language')}"
Issue:
The session_language
URL is incorrect.
Fix:
It should be replaced with update_language
to work correctly:
value="${reverse('update_language')}"
Would appreciate a fix in an upcoming update!
Hi. Feel free to open a PR against release branch GitHub - overhangio/tutor-indigo: An elegant, customizable theme for Open edX . You already have a proposed fix, you should do the honor of adding it .
Yagnesh
(Yagnesh Nayi)
March 21, 2025, 9:22am
3
That makes sense, I will do it.
2 Likes
Yagnesh
(Yagnesh Nayi)
April 9, 2025, 7:46am
4
I have submitted a pull request to merge the changes, and I am now closing this conversation as resolved.
release
← Yagnesh1998:Yagnesh-language-url-issue-fix
opened 07:42AM - 09 Apr 25 UTC
### Problem
The language switch dropdown in the Tutor Indigo theme was generati… ng incorrect URLs due to the use of 'session_language' in `header.html`.
### Solution
Replaced 'session_language' with 'update_language' in the `header.html` file to ensure correct URL generation for language switching.
### Testing
- Enabled multiple languages in Open edX.
- Verified that the language switch dropdown now generates the correct URLs and functions as expected.
### Screenshots
