# Bug Report: Incorrect URL for Language Switch in Tutor Indigo Theme

**URL:** <https://discuss.openedx.org/t/bug-report-incorrect-url-for-language-switch-in-tutor-indigo-theme/15316>\
**Category:** Development\
**Tags:** tutor, tutor-indigo\
**Created:** [March 21, 2025, 8:49am UTC](https://discuss.openedx.org/t/bug-report-incorrect-url-for-language-switch-in-tutor-indigo-theme/15316 "2025-03-21T08:49:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yagnesh](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/yagnesh/32/9571_2.png) [@Yagnesh](https://discuss.openedx.org/u/Yagnesh)\
**Post date:** [March 21, 2025, 8:49am UTC](https://discuss.openedx.org/t/bug-report-incorrect-url-for-language-switch-in-tutor-indigo-theme/15316/1 "2025-03-21T08:49:59Z")

</div>

**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`](https://github.com/overhangio/tutor-indigo/blob/release/tutorindigo/templates/indigo/lms/templates/header/header.html#L95C1-L96C1)

```auto
value="${reverse('session_language')}"

```

**Issue:**

- The `session_language` URL is incorrect.

**Fix:**

- It should be replaced with `update_language` to work correctly:

```auto
value="${reverse('update_language')}"

```

Would appreciate a fix in an upcoming update! 🙂

---

<div class="post-metadata">

**Author:** ![Syed\_Muhammad\_Dawoud](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/syed_muhammad_dawoud/32/6313_2.png) [@Syed\_Muhammad\_Dawoud](https://discuss.openedx.org/u/Syed_Muhammad_Dawoud)\
**Post date:** [March 21, 2025, 9:19am UTC](https://discuss.openedx.org/t/bug-report-incorrect-url-for-language-switch-in-tutor-indigo-theme/15316/2 "2025-03-21T09:19:33Z")

</div>

Hi. Feel free to open a PR against release branch [GitHub - overhangio/tutor-indigo: An elegant, customizable theme for Open edX](https://github.com/overhangio/tutor-indigo). You already have a proposed fix, you should do the honor of adding it 🙂 .

---

<div class="post-metadata">

**Author:** ![Yagnesh](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/yagnesh/32/9571_2.png) [@Yagnesh](https://discuss.openedx.org/u/Yagnesh)\
**Post date:** [March 21, 2025, 9:22am UTC](https://discuss.openedx.org/t/bug-report-incorrect-url-for-language-switch-in-tutor-indigo-theme/15316/3 "2025-03-21T09:22:11Z")

</div>

That makes sense, I will do it. 🙂

---

<div class="post-metadata">

**Author:** ![Yagnesh](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/yagnesh/32/9571_2.png) [@Yagnesh](https://discuss.openedx.org/u/Yagnesh)\
**Post date:** [April 9, 2025, 7:46am UTC](https://discuss.openedx.org/t/bug-report-incorrect-url-for-language-switch-in-tutor-indigo-theme/15316/4 "2025-04-09T07:46:12Z")

</div>

I have submitted a pull request to merge the changes, and I am now closing this conversation as resolved.

> <https://github.com/overhangio/tutor-indigo/pull/139>
>
> \### 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
> !\[Screenshot from 2025-04-09 13-11-02\](https://github.com/user-attachments/assets/583775b0-18f8-4f70-b6dc-7c077124fba8)
